Merge pull request #4219 from TheDecryptor/jpegxl_support

Add support for JPEG XL image previews
This commit is contained in:
Max Leiter 2021-05-25 21:36:37 -07:00 committed by GitHub
commit 58217cffb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -222,6 +222,7 @@ function parse(msg, chan, preview, res, client) {
case "image/gif":
case "image/jpg":
case "image/jpeg":
case "image/jxl":
case "image/webp":
case "image/avif":
if (!Helper.config.prefetchStorage && Helper.config.disableMediaPreview) {

View File

@ -29,6 +29,7 @@ const inlineContentDispositionTypes = {
"image/png": "image.png",
"image/webp": "image.webp",
"image/avif": "image.avif",
"image/jxl": "image.jxl",
"text/plain": "text.txt",
"video/mp4": "video.mp4",
"video/ogg": "video.ogv",