mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
log undecodeable gif images
This commit is contained in:
parent
ec0b86de4b
commit
cfce9a559d
@ -916,6 +916,7 @@ class MobiReader:
|
|||||||
except AnimatedGIF:
|
except AnimatedGIF:
|
||||||
pass
|
pass
|
||||||
except OSError:
|
except OSError:
|
||||||
|
self.log.warn(f'Ignoring undecodeable GIF image at index {image_index}')
|
||||||
continue
|
continue
|
||||||
path = os.path.join(output_dir, '%05d.%s' % (image_index, imgfmt))
|
path = os.path.join(output_dir, '%05d.%s' % (image_index, imgfmt))
|
||||||
image_name_map[image_index] = os.path.basename(path)
|
image_name_map[image_index] = os.path.basename(path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user