Fix #1720638 [Conversion of grayscale JPEG-XR images produces distorted results](https://bugs.launchpad.net/calibre/+bug/1720638)

This commit is contained in:
Kovid Goyal 2017-10-01 20:14:15 +05:30
parent 4b40482d3b
commit 3db355746a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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()