Conversion pipeline: When rescaling images, dont replace gif image data with jpeg data

This commit is contained in:
Kovid Goyal 2010-10-01 10:21:39 -06:00
parent 4e91f3c018
commit 0ff8bd1863

View File

@ -39,7 +39,7 @@ class RescaleImages(object):
if item.media_type.startswith('image'):
ext = item.media_type.split('/')[-1].upper()
if ext == 'JPG': ext = 'JPEG'
if ext not in ('PNG', 'JPEG'):
if ext not in ('PNG', 'JPEG', 'GIF'):
ext = 'JPEG'
raw = item.data