This commit is contained in:
Thibault Deckers 2022-07-18 19:59:00 +02:00
parent 6f15b359b0
commit 7a492d0a1e

View file

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