New image and color management library for Python 2+3

Jan Riechers janpeterr at freenet.de
Thu Aug 23 03:56:31 EDT 2012


On 20.08.2012 20:34, Christian Heimes wrote:
 > Am 19.08.2012 19:35, schrieb Jan Riechers:
 >
 > Hello Jan,
 >
 > we decided against ImageMagick and pgmagick for several reasons. For one
 > we were already using FreeImage in other projects (Delphi projects and
 > through ctypes binding with FreeImagePy).
 >
[SNIP]
 >
 > The Python bindings for ImageMagick weren't that good and today they are
 > still buggy. For example I'm not able to set the resize filter to a high
 > quality setting like Catmull-Rom-Spline with the most recent version of
 > pgmagick. filterType() doesn't do anything. The output image still has
 > the same MD5 hash.
 >
 > ImageMagick and PIL were missing important features, too. For example
 > both libraries don't support color management with lcms2 nor cached
 > color transformations nor introspection of ICC profiles. They use lcms1.
 >

The color profiles explains - perhaps it would be interesting still to 
test out your library with regular images (without color profiles) 
against ImageMagick, just to compare the raw speed of both solutions. In 
my case I really would love to see if there is a even higher performance 
solution available as I plan to serve a lot of users a time and 
especially keeping the Input/Output during file writing low would be 
very helpful.


 >
 >> Can you perhaps test your solution with ImageMagick (as it is used
 >> widely) it would be interesting so.
 >
 > I've added some more benchmark results to the README.txt (PIL with
 > non-standard libjpeg-turbo and pgmagick). The results are available at
 > https://bitbucket.org/tiran/smc.freeimage
 >
 > Spoiler: pgmagick isn't faster and its resize filter settings don't work.
 >
Thank you for the additional benchmarks, nice to read!

I will try your library out to see how it compares to old-pendant 
ImageMagick with Pypy 1.9 | Wand / Pillow (Pil fork for pypy) and Python 
2.7.3 PIL / ImageMagick - perhaps I can deliver you those numbers too - 
for those folks not completely in need of a color profile aware version 
but to compare raw numbers

Perhaps it would also be nice to see if and how it works with Pypy too

Jan



More information about the Python-list mailing list