Summary: | [GTK][WPE] Decoding artifacts in JPEG2000 images | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adrian Perez <aperez> | ||||||
Component: | Images | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | NEW --- | ||||||||
Severity: | Normal | CC: | agomez, sabouhallawa | ||||||
Priority: | P2 | ||||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Linux | ||||||||
See Also: |
https://bugs.webkit.org/show_bug.cgi?id=178758 https://bugs.webkit.org/show_bug.cgi?id=186272 |
||||||||
Attachments: |
|
Description
Adrian Perez
2022-08-30 00:49:15 PDT
Created attachment 462001 [details]
Example JP2 which shows decoding artifacts
Here's the JP2 file, in case it disappears from the web.
One more data point: in the testing I have been doing, both WebKit and GIMP are using the same OpenJPEG library, version 2.5.0: % readelf -d /usr/lib/gimp/2.99/plug-ins/file-jp2-load/file-jp2-load | grep 'NEEDED.*openjp' 0x0000000000000001 (NEEDED) Shared library: [libopenjp2.so.7] % readelf -d /usr/lib/libwebkit2gtk-4.1.so | grep 'NEEDED.*openjp' 0x0000000000000001 (NEEDED) Shared library: [libopenjp2.so.7] Not sure if related, but trying to open the following JP2 image will show an empty white rectangle in WebKitGTK/WPE (again, GIMP opens it just fine): https://github.com/openpreserve/format-corpus/blob/master/jp2k-formats/balloon.jp2 The same image can be found here, with JP2 files produced using different encoders, WebKit loads them all fine except for “balloon_aware.jp2”, which loads as transparent pixels (GIMP opens it fine): https://github.com/openpreserve/format-corpus/tree/master/jp2k-test/resolution The following one seems to be decoded as completely transparent pixels as well (and GIMP has trouble with it as well, it shows it as mostly pure green pixels with some small black spots): https://www.fnordware.com/j2k/jp2samples.html Thanks for reporting this, Adrián. |