linuxmint / xviewer

A generic Image viewer
GNU General Public License v2.0
75 stars 37 forks source link

Xviewer is unable to display JPEG that use arithmetic encoding #188

Open nhoudelot opened 1 year ago

nhoudelot commented 1 year ago
 * Xviewer 3.4.1
 * Distribution - Mint 21.2

Issue Xviewer is unable to display JPEG that use arithmetic encoding

Steps to reproduce use imagemagick 6 & jpegtran to create such jpeg

$ convert wizard: wizard.jpg $ jpegtran -arithmetic wizard.jpg > wizard_ar.jpg

double clic on wizard_ar.jpg, it doesn't open the image and give an error

Expected behaviour opening the image and seeing it interestingly, if you press F5 in nemo, the thumbnail will be generated

Other information

Gimp can open the image, imagemagick 6 can convert it (but not create one, it start at version 7) it's a try & guess, depending of which jpeg library is used under the hood

Xreader is also affected. for example, it can't read CBZ with such jpeg embedded

arithmetic encoding patents seems to have expired several years ago. Initially it wasn't implemented by encoders and decoders