From 3db355746a5dceb7b5914742ad5388b53ac98a11 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 1 Oct 2017 20:14:15 +0530 Subject: [PATCH] Fix #1720638 [Conversion of grayscale JPEG-XR images produces distorted results](https://bugs.launchpad.net/calibre/+bug/1720638) --- src/calibre/utils/img.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/img.py b/src/calibre/utils/img.py index 46ebf21422..8d7dead317 100644 --- a/src/calibre/utils/img.py +++ b/src/calibre/utils/img.py @@ -57,7 +57,7 @@ def load_jxr_data(data): tdir = tdir.encode('mbcs') with lopen(os.path.join(tdir, 'input.jxr'), 'wb') as f: f.write(data) - cmd = [get_exe_path('JxrDecApp'), '-i', 'input.jxr', '-o', 'output.tif', '-c', '0'] + cmd = [get_exe_path('JxrDecApp'), '-i', 'input.jxr', '-o', 'output.tif'] creationflags = 0x08 if iswindows else 0 subprocess.Popen(cmd, cwd=tdir, stdout=lopen(os.devnull, 'wb'), stderr=subprocess.STDOUT, creationflags=creationflags).wait() i = QImage()