django-imagekit/imagekit
Matthew Tretter 0ef56e1aaa process() accepts file
In the old IK API, processors (like `Transpose`) were able to access
the file by inspecting the model instance (which carried an options
object that specified the attribute name of the ImageField from which
the file could be extracted). Since the new API allows for multiple
ImageFields (and because IKOptions have been removed), it became
necessary to provide more information. Initially, this was accomplished
by passing the spec to `process()`, however with the addition of
ProcessedImageField, it became clear the a cleaner solution was to pass
only the field file (ImageSpecFile or ProcessedImageFieldFile).

This keeps the ORM stuff (fields, etc.) out of the `ImageProcessor` API
but (because field files, not just regular files, are passed) the
average hacker can still have their processor make use of model
information by accessing the model through the file's `instance`
property.
2011-09-22 17:58:33 -04:00
..
management BoundImageSpec is now ImageSpecFile 2011-09-22 09:20:37 -04:00
templates/imagekit/admin Added AdminThumbnailView field. 2011-09-20 19:37:04 -04:00
__init__.py Bumping the verison numbers. 2011-04-01 11:56:44 -07:00
fields.py process() accepts file 2011-09-22 17:58:33 -04:00
lib.py Cleaned up trailing whitespace 2009-12-19 11:01:54 -05:00
processors.py process() accepts file 2011-09-22 17:58:33 -04:00
tests.py Move ImageSpec to fields module. 2011-09-21 11:37:29 -04:00
utils.py BoundImageSpec is now ImageSpecFile 2011-09-22 09:20:37 -04:00