Xviewer is unable to display JPEG that use arithmetic encoding

Open
#188 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c

Research direction

Reproduce the failure with ImageMagick 6 and jpegtran using the commands in the report, then trace Xviewer’s image-opening path for the generated wizard_ar.jpg. Compare its behavior with the thumbnail generated by Nemo and the successful behavior in Gimp or ImageMagick. Done means Xviewer opens JPEG files using arithmetic encoding; Xreader is also reported as affected.

Written by the indexing model from the issue text.

Description

 * 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

Dominant language
C
Stars
92
Forks
47
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/xviewer

All issues in linuxmint/xviewer

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.