dzxs / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Image quality not reduced by a preprocessor_spec #138

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, please excuse me for my ugly english :p

I've created this simple model class, with a Preprocessor to reduce my
photos'quality (the photos'extension is .JPG):

from django.db import models
from imagekit.models import ImageModel
from imagekit.specs import ImageSpec
from imagekit import processors

class Preprocessor(ImageSpec):
    quality = 50
    processors = [processors.Format]

class Picture(ImageModel):
    image = models.ImageField(upload_to='pictures')

    class IKOptions:
        preprocessor_spec = Preprocessor

The problem : photos'quality are not reduced. :(
Any idea to fix it ?

Thank you very much ;)

Original issue reported on code.google.com by degans...@gmail.com on 22 Sep 2009 at 2:01