see, Ian Stevens‘ CDLL bindings are a straight forward implementation of the MagickWand C API using the CDLL Python-MagickWand or How to Work With Icons. I haven’t really thought about it luispedro. Honestly, these days there’s less and less reason for me to spend hours setting up stuff myself, and that’s a great thing.ġ2 Responses to “Python bindings for ImageMagick’s MagickWand API” It’s about as good as something I would deploy myself, but with much less hassle. ![]() On a side note, I’m quite impressed with Assembla, the site which I’m using for my SVN and Trac repo. This may look a lot like PIL code, so why not use it instead of ImageMagick? ImageMagick covers a much wider range of image formats than PIL, and supports better algorithms for image resizing.Ĭheck out the bindings by installing them with easy_install: easy_install The above reads in a JPEG image, reformats to PNG and rotates by 45 degrees with a background colour of blue. While this is still in the early stages, it’s workable in a way which I hope is expected and unsurprising: from pythonmagick.image import Image While most bindings I’ve seen just look like generated ctypes code from C header files, these bindings are more object-oriented, completely hiding the MagickWand methods. ![]() I’ve been spending some of my spare time recently putting together some Python bindings for ImageMagick’s MagickWand API. ![]() Python bindings for ImageMagick’s MagickWand API - crazed monkey crazed monkey Ian Stevens' weblog Python bindings for ImageMagick’s MagickWand API
0 Comments
Leave a Reply. |