Files
skjnldsv 6dad04eed1 feat(preview): generate previews for JPEG 2000 images
A .jp2 is typed correctly on upload and has been since 12.0.0.14, and
then nothing can render it: no provider claims image/jp2, no browser
decodes the format, so the file opens to nothing.

ImageMagick reads it where it was built with OpenJPEG, which is what the
other formats libgd cannot read already rely on, and the signature box a
.jp2 opens with sits at offset 0 where Bitmap looks for it. So this is
the same shape as TIFF: a Bitmap subclass naming the format, off until
an admin enables it.

libgd is not an option here and never was. It has no JPEG 2000 functions
at all, which is why the case for it in OC\Image sits commented out
beside the other formats it cannot read. Imaginary answers 406 for one.

The pixel assertion the AVIF tests use is not about AVIF, so it loses
the name and is shared.

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2026-09-20 23:39:37 +02:00
..
2026-07-07 13:30:58 +02:00