mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ def rescale(self):
|
|||
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…
Reference in a new issue