mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Replaced the fixed trim
Single and bulk metadata trim modification with tweaked value
This commit is contained in:
parent
6c2ca8975d
commit
0a01e4b72f
@ -211,7 +211,7 @@ class MyBlockingBusyNew(QDialog): # {{{
|
||||
if cdata:
|
||||
im = Image()
|
||||
im.load(cdata)
|
||||
im.trim(10)
|
||||
im.trim(tweaks['cover_trim_fuzz_value'])
|
||||
cdata = im.export('png')
|
||||
cache.set_cover({book_id:cdata})
|
||||
|
||||
@ -439,7 +439,7 @@ class MyBlockingBusy(QDialog): # {{{
|
||||
if cdata:
|
||||
im = Image()
|
||||
im.load(cdata)
|
||||
im.trim(10)
|
||||
im.trim(tweaks['cover_trim_fuzz_value'])
|
||||
cdata = im.export('png')
|
||||
self.db.set_cover(id, cdata)
|
||||
|
||||
|
@ -971,7 +971,7 @@ class Cover(ImageView): # {{{
|
||||
return
|
||||
im = Image()
|
||||
im.load(cdata)
|
||||
im.trim(10)
|
||||
im.trim(tweaks['cover_trim_fuzz_value'])
|
||||
cdata = im.export('png')
|
||||
self.current_val = cdata
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user