django-daguerre icon indicating copy to clipboard operation
django-daguerre copied to clipboard

imagemagick, Wand > Pillow

Open nordbit opened this issue 10 years ago • 7 comments

Little suggestion - PIL/Pillow can't be used for serious real high quality thubnails. I tested many backends and options, where quality of images are critica important to project (like website for photographers) - only imagemagick is usuable and provide thubnails with good enought quality.

nordbit avatar Sep 05 '14 15:09 nordbit

We would certainly welcome patches for additional ImageMagick support.

melinath avatar Sep 05 '14 17:09 melinath

It would definitely be nice for us to be able to support multiple image processing backends and provide a normalized interface for them. Does functionality vary much between Pillow and ImageMagick and whatever else is out there?

harrislapiroff avatar Sep 05 '14 21:09 harrislapiroff

I've been reticent to add ImageMagick support because it's such a PITA to use. But Wand looks like it makes things a lot easier. Maybe the time has come.

@harrislapiroff Sorl-thumbnail's breakdown of their different engines: http://sorl-thumbnail.readthedocs.org/en/latest/reference/settings.html#thumbnail-engine

melinath avatar Sep 13 '14 21:09 melinath

This looks like a useful library that might obviate the necessity for writing our own swappable backends. https://github.com/torchbox/Willow

harrislapiroff avatar Apr 01 '15 20:04 harrislapiroff

Willow integration would also make #54 easier.

Thought it looks like Willow defaults to Pillow and uses Wand as a fallback. Not sure yet if that's configurable or why it does it that way since Wand should be faster.

harrislapiroff avatar Apr 01 '15 20:04 harrislapiroff

Willow seems to prefer Pillow for png / jpeg / bmp and Wand for gifs.

melinath avatar Apr 03 '15 19:04 melinath

Unfortunately, we can't just drop Willow in. We currently read EXIF tags, compare images, and use custom Pillow-based parsing to figure out the dimensions of a file quickly, none of which is natively supported by Willow. But I'm sure there are ways to do the same things with Wand... so we could potentially try to get support added to Willow.

melinath avatar Apr 03 '15 19:04 melinath