mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7f052f0c5e
commit
b07319250d
@ -403,7 +403,7 @@ class RecursiveFetcher(object):
|
||||
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…
x
Reference in New Issue
Block a user