Fix a regression in 2.57 that broke rescaling of images to fit the output profile screen size during conversion. Fixes #1594098 [odt -> epub image rescaling [Windows]](https://bugs.launchpad.net/calibre/+bug/1594098)

This commit is contained in:
Kovid Goyal 2016-06-19 17:25:19 +05:30
parent fad93bea53
commit 3b3b0795bb

View File

@ -65,7 +65,7 @@ class RescaleImages(object):
new_height = max(1, new_height)
self.log('Rescaling image from %dx%d to %dx%d'%(
width, height, new_width, new_height), item.href)
img.resize((new_width, new_height))
img = img.resize((new_width, new_height))
buf = BytesIO()
try:
img.save(buf, ext)