mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 04:35:23 +02:00
...
This commit is contained in:
parent
7f052f0c5e
commit
b07319250d
1 changed files with 1 additions and 1 deletions
|
|
@ -403,7 +403,7 @@ def process_images(self, soup, baseurl):
|
|||
data = image_to_data(img, fmt=itype)
|
||||
if self.compress_news_images and itype in {'jpg','jpeg'}:
|
||||
try:
|
||||
data = self.rescale_image(img)
|
||||
data = self.rescale_image(data)
|
||||
except Exception:
|
||||
self.log.exception('failed to compress image '+iurl)
|
||||
# Moon+ apparently cannot handle .jpeg files
|
||||
|
|
|
|||
Loading…
Reference in a new issue