mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 00:14:07 +02:00
Fix #1720638 [Conversion of grayscale JPEG-XR images produces distorted results](https://bugs.launchpad.net/calibre/+bug/1720638)
This commit is contained in:
parent
4b40482d3b
commit
3db355746a
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue