mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 17:03:37 +02:00
Change image export format to jpg
This commit is contained in:
parent
0a01e4b72f
commit
361ab678fb
2 changed files with 3 additions and 3 deletions
|
|
@ -212,7 +212,7 @@ def get_sort(book_id):
|
|||
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 @@ def do_one(self, id):
|
|||
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 @@ def trim_cover(self, *args):
|
|||
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…
Reference in a new issue