mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -57,7 +57,7 @@ def load_jxr_data(data):
|
|||||||
tdir = tdir.encode('mbcs')
|
tdir = tdir.encode('mbcs')
|
||||||
with lopen(os.path.join(tdir, 'input.jxr'), 'wb') as f:
|
with lopen(os.path.join(tdir, 'input.jxr'), 'wb') as f:
|
||||||
f.write(data)
|
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
|
creationflags = 0x08 if iswindows else 0
|
||||||
subprocess.Popen(cmd, cwd=tdir, stdout=lopen(os.devnull, 'wb'), stderr=subprocess.STDOUT, creationflags=creationflags).wait()
|
subprocess.Popen(cmd, cwd=tdir, stdout=lopen(os.devnull, 'wb'), stderr=subprocess.STDOUT, creationflags=creationflags).wait()
|
||||||
i = QImage()
|
i = QImage()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user