mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Change image export format to jpg
This commit is contained in:
parent
0a01e4b72f
commit
361ab678fb
@ -212,7 +212,7 @@ class MyBlockingBusyNew(QDialog): # {{{
|
||||
im = Image()
|
||||
im.load(cdata)
|
||||
im.trim(tweaks['cover_trim_fuzz_value'])
|
||||
cdata = im.export('png')
|
||||
cdata = im.export('jpg')
|
||||
cache.set_cover({book_id:cdata})
|
||||
|
||||
# Formats
|
||||
@ -440,7 +440,7 @@ class MyBlockingBusy(QDialog): # {{{
|
||||
im = Image()
|
||||
im.load(cdata)
|
||||
im.trim(tweaks['cover_trim_fuzz_value'])
|
||||
cdata = im.export('png')
|
||||
cdata = im.export('jpg')
|
||||
self.db.set_cover(id, cdata)
|
||||
|
||||
if do_remove_format:
|
||||
|
@ -972,7 +972,7 @@ class Cover(ImageView): # {{{
|
||||
im = Image()
|
||||
im.load(cdata)
|
||||
im.trim(tweaks['cover_trim_fuzz_value'])
|
||||
cdata = im.export('png')
|
||||
cdata = im.export('jpg')
|
||||
self.current_val = cdata
|
||||
|
||||
def generate_cover(self, *args):
|
||||
|
Loading…
x
Reference in New Issue
Block a user