views:

506

answers:

1

Where can I find the document and examples of PythonMagick?

I did a search on Google but no much information was found.

A: 

It is a bindings to the MagickWand API : http://www.assembla.com/wiki/show/pythonmagickwand

So you can use all of the MagickWand API functions.

 #!/usr/bin/python
 import Magick

 # Use the Python Imaging Library to create a Tk display
 dpy = Magick.TkDisplay(startmain=0)

 # Read the image
 img = Magick.read('test.gif')

 # Display the image
 dpy(img)
 dpy(img.Swirl(90))

 dpy.startmain=1
 dpy.show()
Natim