jdriscoll/django-imagekit — Issue #71: trying to create a display image isn't working
Author: davemerwin
Created: 2011-11-24 02:02:17+00:00
State: open

here's the code in my model. The thumbnail works great. But the display isn't working. Suggestions welcome.

from imagekit.models import ImageSpec
from imagekit.processors import resize, Adjust

class Speaker(models.Model):
first_name = models.CharField(max_length=100)
last_name = models.CharField(max_length=100)
bio = models.TextField(blank=True)
original_image = models.ImageField(upload_to='speaker_photos')
display = ImageSpec(image_field='original_image', options={'quality': 70})
thumbnail = ImageSpec([Adjust(contrast=1.2, sharpness=1.1), resize.Crop(50, 50)], image_field='original_image', options={'quality': 50})