Commit the other two files

This commit is contained in:
Charles Haley 2013-09-15 19:09:57 +02:00
parent d69211e3b1
commit 72cf895392
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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