novomesk / qt-jpegxl-image-plugin

Qt plug-in to allow Qt and KDE based applications to read/write JXL images.
GNU General Public License v3.0
93 stars 8 forks source link

Failed decode #3

Closed Orum closed 3 years ago

Orum commented 3 years ago

For some images, the results are very different from those from djxl. See example attached file (zipped because GitHub doesn't permit .jxl). output.zip

Command used to create it: cjxl input.png output.jxl -m -Q 25 -s 9 -E 3 --noise=1 --lossy-palette --palette=0 --num_threads 16 -v

novomesk commented 3 years ago

Can you send me your input.png ?

When I decode the output.jxl using djxl I get this: decoded_djxl and output.jxl decoded via my plug-in it looks like this: Screenshot_20201231_101009

Orum commented 3 years ago

Whoops, I ran it again and now get the same results from djxl as the plugin. I think I accidentally decoded a different image (the test image was encoded several times) with djxl, and thought it was working with djxl. The problem seems to lie in the encoder when using some of those flags, and not in the decoding.

Sorry for the noise.