mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression in 0.7.13 that broke Comic Input when image output format was set to JPEG
This commit is contained in:
parent
3b3cc6959f
commit
2884c0ca78
@ -163,8 +163,12 @@ class PageProcessor(list):
|
|||||||
wand.quantize(self.opts.colors)
|
wand.quantize(self.opts.colors)
|
||||||
dest = '%d_%d.%s'%(self.num, i, self.opts.output_format)
|
dest = '%d_%d.%s'%(self.num, i, self.opts.output_format)
|
||||||
dest = os.path.join(self.dest, dest)
|
dest = os.path.join(self.dest, dest)
|
||||||
wand.save(dest+'8')
|
if dest.lower().endswith('.png'):
|
||||||
os.rename(dest+'8', dest)
|
dest += '8'
|
||||||
|
wand.save(dest)
|
||||||
|
if dest.endswith('8'):
|
||||||
|
dest = dest[:-1]
|
||||||
|
os.rename(dest+'8', dest)
|
||||||
self.append(dest)
|
self.append(dest)
|
||||||
|
|
||||||
def render_pages(tasks, dest, opts, notification=lambda x, y: x):
|
def render_pages(tasks, dest, opts, notification=lambda x, y: x):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user