What is this?

Python bindings to ImageMagick's MagickWand API.

Why?

Because I like ImageMagick and dislike spawning a process to use it from within Python. The existing MagickWand bindings for Python aren't that great. These bindings will be structured to be more "Python-like".

Why should I use it? Isn't PIL good enough?

Certainly, for a lot of image manipulation and editing PIL is sufficient. ImageMagick excels in areas where PIL is lacking, however. Specifically, ImageMagick has far better support for image conversion and has many advanced filtering and sampling techniques.

Can I use it?

Sure! You will need ImageMagick installed to use these bindings. Don't expect much yet as the bindings are the unadulterated output of a Python ctypes generator.

You can install the bindings using easy_install:

easy_install http://svn2.assembla.com/svn/pythonmagickwand/trunk

What can I do with it?

Right now only a few single-image methods are implemented. MagickWand operations involving one image can be found in pythonmagickwand.image.Image. For example, the following example will convert a flipped foo.jpg as flip.png:

from pythonmagick.image import Image
i = Image('foo.jpg')
i.format = 'PNG'
i.flip()
i.save('flip.png')

Comments



Copyright © 2006–2008 by Assembla, LLC / Phone 1.781.328.2241 / E-mail: info@assembla.com