From 7a492d0a1ef5a82d87e3e23796e3ef10249842d8 Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Mon, 18 Jul 2022 19:59:00 +0200 Subject: [PATCH] minor --- lib/ref/mime_types.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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};