[Webkit-unassigned] [Bug 244528] [GTK][WPE] Decoding artifacts in JPEG2000 images

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 30 01:15:28 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=244528

--- Comment #2 from Adrian Perez <aperez at igalia.com> ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220830/eb4ccc53/attachment.htm>


More information about the webkit-unassigned mailing list