Merge pull request #4219 from TheDecryptor/jpegxl_support
Add support for JPEG XL image previews
This commit is contained in:
commit
58217cffb1
@ -222,6 +222,7 @@ function parse(msg, chan, preview, res, client) {
|
|||||||
case "image/gif":
|
case "image/gif":
|
||||||
case "image/jpg":
|
case "image/jpg":
|
||||||
case "image/jpeg":
|
case "image/jpeg":
|
||||||
|
case "image/jxl":
|
||||||
case "image/webp":
|
case "image/webp":
|
||||||
case "image/avif":
|
case "image/avif":
|
||||||
if (!Helper.config.prefetchStorage && Helper.config.disableMediaPreview) {
|
if (!Helper.config.prefetchStorage && Helper.config.disableMediaPreview) {
|
||||||
|
@ -29,6 +29,7 @@ const inlineContentDispositionTypes = {
|
|||||||
"image/png": "image.png",
|
"image/png": "image.png",
|
||||||
"image/webp": "image.webp",
|
"image/webp": "image.webp",
|
||||||
"image/avif": "image.avif",
|
"image/avif": "image.avif",
|
||||||
|
"image/jxl": "image.jxl",
|
||||||
"text/plain": "text.txt",
|
"text/plain": "text.txt",
|
||||||
"video/mp4": "video.mp4",
|
"video/mp4": "video.mp4",
|
||||||
"video/ogg": "video.ogv",
|
"video/ogg": "video.ogv",
|
||||||
|
Loading…
Reference in New Issue
Block a user