jdriscoll/django-imagekit — Issue #41: Converting from .png to .jpeg doesn't work
Author: deepakprakash
Created: 2011-11-01 20:57:36+00:00
State: open

Specifying an explicit ''' format="JPEG" ''' does not work when the input file is in PNG format. Works fine when input is JPEG (haven't tested the usual suspects such as GIF, TIFF yet). Also works fine when ''' format= ''' is NOT specified.

class ZDPlainImage(EncryptedPKModel):

original = ImageField(max_length=500, upload_to="uploads")

# ImageKit generated image variations
thumbnail = ImageSpec([resize.Fit(width=250)], image_field='original', format="JPEG", quality=90)
display = ImageSpec([resize.Fit(width=650, upscale=False)], image_field='original', format="JPEG", quality=90)