mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-04-03 11:03:32 +02:00
Remove getsize method of PIL in favor of getbbox
This commit is contained in:
@@ -1012,7 +1012,7 @@ class HTMLConverter(object):
|
||||
self.image_memory.append(pt) # Neccessary, trust me ;-)
|
||||
try:
|
||||
im.resize((int(width), int(height)),
|
||||
PILImage.ANTIALIAS).save(pt, encoding)
|
||||
PILImage.LANCZOS).save(pt, encoding)
|
||||
pt.close()
|
||||
self.scaled_images[path] = pt
|
||||
return pt.name
|
||||
@@ -1970,7 +1970,7 @@ def process_file(path, options, logger):
|
||||
options.cover = cf.name
|
||||
|
||||
tim = im.resize((int(0.75 * th), th),
|
||||
PILImage.ANTIALIAS).convert('RGB')
|
||||
PILImage.LANCZOS).convert('RGB')
|
||||
tf = PersistentTemporaryFile(prefix=__appname__ + '_',
|
||||
suffix=".jpg")
|
||||
tf.close()
|
||||
|
||||
Reference in New Issue
Block a user