Add support for JPEG XL mimetype

This commit is contained in:
Alex Jones 2021-05-08 18:10:45 +10:00
parent 7b1cb88658
commit dbf6ff064b
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

@ -28,6 +28,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",