From 0467af0c29d5571da100b92f682de4e7dfa82476 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 21 Feb 2009 11:38:24 -0800 Subject: [PATCH] Cybook Gen3:Fix thumbnail generation. --- src/calibre/devices/cybookg3/driver.py | 1 + src/calibre/devices/cybookg3/t2b.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/devices/cybookg3/driver.py b/src/calibre/devices/cybookg3/driver.py index f092473675..eef32594eb 100644 --- a/src/calibre/devices/cybookg3/driver.py +++ b/src/calibre/devices/cybookg3/driver.py @@ -33,6 +33,7 @@ class CYBOOKG3(USBMS): EBOOK_DIR_MAIN = "eBooks" EBOOK_DIR_CARD = "eBooks" + THUMBNAIL_HEIGHT = 144 SUPPORTS_SUB_DIRS = True def upload_books(self, files, names, on_card=False, end_session=True, diff --git a/src/calibre/devices/cybookg3/t2b.py b/src/calibre/devices/cybookg3/t2b.py index 5bf512f22d..7aaeeb63d7 100644 --- a/src/calibre/devices/cybookg3/t2b.py +++ b/src/calibre/devices/cybookg3/t2b.py @@ -30,7 +30,7 @@ def write_t2b(t2bfile, coverdata=None): if coverdata != None: coverdata = StringIO.StringIO(coverdata) cover = Image.open(coverdata).convert("L") - cover.thumbnail((96, 144)) + cover.thumbnail((96, 144), Image.ANTIALIAS) t2bcover = Image.new('L', (96, 144), 'white') x, y = cover.size