mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
fad93bea53
commit
3b3b0795bb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user