Conversion of grayscale JPEG-XR images produces distorted results
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.
Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.
status fixreleased