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:
|
if cdata:
|
||||||
im = Image()
|
im = Image()
|
||||||
im.load(cdata)
|
im.load(cdata)
|
||||||
im.trim(10)
|
im.trim(tweaks['cover_trim_fuzz_value'])
|
||||||
cdata = im.export('png')
|
cdata = im.export('png')
|
||||||
cache.set_cover({book_id:cdata})
|
cache.set_cover({book_id:cdata})
|
||||||
|
|
||||||
@ -439,7 +439,7 @@ class MyBlockingBusy(QDialog): # {{{
|
|||||||
if cdata:
|
if cdata:
|
||||||
im = Image()
|
im = Image()
|
||||||
im.load(cdata)
|
im.load(cdata)
|
||||||
im.trim(10)
|
im.trim(tweaks['cover_trim_fuzz_value'])
|
||||||
cdata = im.export('png')
|
cdata = im.export('png')
|
||||||
self.db.set_cover(id, cdata)
|
self.db.set_cover(id, cdata)
|
||||||
|
|
||||||
|
@ -971,7 +971,7 @@ class Cover(ImageView): # {{{
|
|||||||
return
|
return
|
||||||
im = Image()
|
im = Image()
|
||||||
im.load(cdata)
|
im.load(cdata)
|
||||||
im.trim(10)
|
im.trim(tweaks['cover_trim_fuzz_value'])
|
||||||
cdata = im.export('png')
|
cdata = im.export('png')
|
||||||
self.current_val = cdata
|
self.current_val = cdata
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user