Wand is a ctypes-based simple MagickWand API binding for Python.
from wand.image import Image
from wand.display import display
with Image(filename='mona-lisa.png') as img:
print img.size
for r in 1, 2, 3:
with img.clone() as i:
i.resize(int(i.width * r * 0.25), int(i.height * r * 0.25))
i.rotate(90 * r)
i.save('mona-lisa-{0}.png'.format(i))
display(i)
You can install it from PyPI (and it requires MagickWand library):
$ apt-get install libmagickwand-dev
$ easy_install Wand
There are already many MagickWand API bindings for Python, however they are lacking something we need:
Wand is an open source software to be used for StyleShare and written by Hong Minhee. The source code is distributed under MIT license and you can find it at GitHub repository. Check out now:
$ git clone https://github.com/StyleShare/wand
If you find a bug, please notify to our issue tracker. Pull requests are always welcome!
Check out Wand Changelog also.