diff --git a/lib/ref/mime_types.dart b/lib/ref/mime_types.dart index 72ce54e7c..b1156ffc4 100644 --- a/lib/ref/mime_types.dart +++ b/lib/ref/mime_types.dart @@ -17,6 +17,7 @@ class MimeTypes { static const art = 'image/x-jg'; static const cdr = 'image/x-coreldraw'; static const djvu = 'image/vnd.djvu'; + static const jpeg2000 = 'image/jp2'; static const jxl = 'image/jxl'; static const pat = 'image/x-coreldrawpattern'; static const pnm = 'image/x-portable-anymap'; @@ -81,7 +82,7 @@ class MimeTypes { static const Set rawImages = {arw, cr2, crw, dcr, dng, dngX, erf, k25, kdc, mrw, nef, nrw, orf, pef, raf, raw, rw2, sr2, srf, srw, x3f}; // TODO TLAD [codec] make it dynamic if it depends on OS/lib versions - static const Set undecodableImages = {art, cdr, crw, djvu, jxl, pat, pnm, psdVnd, psdX, octetStream, zip}; + static const Set undecodableImages = {art, cdr, crw, djvu, jpeg2000, jxl, pat, pnm, psdVnd, psdX, octetStream, zip}; static const Set _knownOpaqueImages = {jpeg};