mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Conversion pipeline: When rescaling images, dont replace gif image data with jpeg data
This commit is contained in:
parent
4e91f3c018
commit
0ff8bd1863
@ -39,7 +39,7 @@ class RescaleImages(object):
|
|||||||
if item.media_type.startswith('image'):
|
if item.media_type.startswith('image'):
|
||||||
ext = item.media_type.split('/')[-1].upper()
|
ext = item.media_type.split('/')[-1].upper()
|
||||||
if ext == 'JPG': ext = 'JPEG'
|
if ext == 'JPG': ext = 'JPEG'
|
||||||
if ext not in ('PNG', 'JPEG'):
|
if ext not in ('PNG', 'JPEG', 'GIF'):
|
||||||
ext = 'JPEG'
|
ext = 'JPEG'
|
||||||
|
|
||||||
raw = item.data
|
raw = item.data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user