Search code examples
pythondjangopython-imaging-libraryphotologue

How to make custom PhotoEffects in Django Photologue?


I'm creating an image gallery in Django using the Photologue application. There are a number of PhotoEffects that come with it. I'd like to extend these and make my own so that I can do more complicated effects such as adding drop shadows, glossy overlays, etc.

Is is possible to create custom effects that Photologue can then use to process images that are uploaded?


Solution

  • I'm the developer of Photologue. I would suggest you look at the 3.x branch of Photologue and more specifically, django-imagekit, the new Library it's based on: http://bitbucket.org/jdriscoll/django-imagekit/wiki/Home. One of the goals of ImageKit was to make it easier to extend Photologue. All effects and manipulations are now implemented as "Processors" which are just a class wrapping a function that takes a PIL image, does something, and returns it. These processors are then chained together in whatever configuration you like. The 3.x branch is early and has been neglected lately (I'll spare you the excuses) but it shouldn't be hard to drop in the latest release of ImageKit and have close to feature parity with Photologue 2.x.