This commit is contained in:
Kovid Goyal 2016-05-11 16:24:40 +05:30
parent 7f052f0c5e
commit b07319250d

View File

@ -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