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:
|
||||
pass
|
||||
except OSError:
|
||||
self.log.warn(f'Ignoring undecodeable GIF image at index {image_index}')
|
||||
continue
|
||||
path = os.path.join(output_dir, '%05d.%s' % (image_index, imgfmt))
|
||||
image_name_map[image_index] = os.path.basename(path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user