mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Commit the other two files
This commit is contained in:
parent
d69211e3b1
commit
72cf895392
@ -43,6 +43,11 @@ class DevicePlugin(Plugin):
|
||||
#: than THUMBNAIL_HEIGHT
|
||||
# THUMBNAIL_WIDTH = 68
|
||||
|
||||
#: Compression quality for thumbnails. Set this closer to 100 to have better
|
||||
#: quality thumbnails with fewer compression artifacts. Of course, the
|
||||
#: thumbnails get larger as well.
|
||||
THUMBNAIL_COMPRESSION_QUALITY=70
|
||||
|
||||
#: Set this to True if the device supports updating cover thumbnails during
|
||||
#: sync_booklists. Setting it to true will ask device.py to refresh the
|
||||
#: cover thumbnails during book matching
|
||||
|
@ -1233,7 +1233,8 @@ class DeviceMixin(object): # {{{
|
||||
ht = self.device_manager.device.THUMBNAIL_HEIGHT \
|
||||
if self.device_manager else DevicePlugin.THUMBNAIL_HEIGHT
|
||||
try:
|
||||
return thumbnail(data, ht, ht)
|
||||
return thumbnail(data, ht, ht,
|
||||
compression_quality=self.device_manager.device.THUMBNAIL_COMPRESSION_QUALITY)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user