Conversion of grayscale JPEG-XR images produces distorted results

Bug #1720638 reported by John Howell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

The KFX format uses grayscale JXR images within books delivered to e-ink Kindle devices. I have tried converting some of these images within calibre and the resulting images are distorted and cropped.

I have found that removing the "-c 0" argument when invoking JxrDecApp fixes the problem and results in correct conversion of these images. (The code that does this is load_jxr_data() in calibre.utils.img.)

I will attach a zip containing three files to demonstrate this problem:

"statue.jxr" is the original grayscale JXR image.

"statue.tif" is a good conversion created by running:
 JxrDecApp-calibre -i statue.jxr -o statue.tif

"statue2.tif" is a badly distorted conversion created by running :
 JxrDecApp-calibre -i statue.jxr -o statue2.tif -c 0

I suggest that the "-c 0" option not be used when invoking JxrDecApp.

Revision history for this message
John Howell (jhowell-o) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Revision history for this message
John Howell (jhowell-o) wrote :

Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.