mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ignore undecodeable GIFs in MOBI files
This commit is contained in:
parent
6d1f2989d1
commit
03d9c2dbc4
@ -915,6 +915,8 @@ class MobiReader:
|
||||
imgfmt = 'png'
|
||||
except AnimatedGIF:
|
||||
pass
|
||||
except OSError:
|
||||
continue
|
||||
path = os.path.join(output_dir, '%05d.%s' % (image_index, imgfmt))
|
||||
image_name_map[image_index] = os.path.basename(path)
|
||||
if imgfmt == 'png':
|
||||
|
Loading…
x
Reference in New Issue
Block a user