mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
News download: Fix regression that broke downloading of images in gif format
This commit is contained in:
parent
60b4f4fd01
commit
226e2348c7
@ -386,7 +386,7 @@ class RecursiveFetcher(object):
|
||||
else:
|
||||
try:
|
||||
if itype not in {'png', 'jpg', 'jpeg'}:
|
||||
itype == 'png' if itype == 'gif' else 'jpg'
|
||||
itype = 'png' if itype == 'gif' else 'jpg'
|
||||
im = Image()
|
||||
im.load(data)
|
||||
data = im.export(itype)
|
||||
|
Loading…
x
Reference in New Issue
Block a user