Merge pull request #96 from cbhaley/master

Fix not actually setting the compression level
This commit is contained in:
Kovid Goyal 2013-09-21 19:50:53 -07:00
commit 0ba14158c2
2 changed files with 4 additions and 0 deletions

View File

@ -1381,6 +1381,8 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
cq = int(self.settings().extra_customization[self.OPT_COMPRESSION_QUALITY])
if cq < 50 or cq > 99:
compression_quality_ok = False
else:
self.THUMBNAIL_COMPRESSION_QUALITY = cq
except:
compression_quality_ok = False
if not compression_quality_ok:

View File

@ -111,6 +111,8 @@ class ColumnIcon(object): # {{{
d = os.path.join(config_dir, 'cc_icons', icon)
if (os.path.exists(d)):
bm = QPixmap(d)
bm = bm.scaled(128, 128, aspectRatioMode= Qt.KeepAspectRatio,
transformMode=Qt.SmoothTransformation)
icon_bitmaps.append(bm)
total_width += bm.width()
if len(icon_bitmaps) > 1: