Introduction to Wand, a ctypes-based simple ImageMagick binding for Python. You can find the original of the presentation in this link: http://j.mp/pykr2012-wand
Speaker: Hong Minhee Hobbyist programmer since 1999 Python programmer since 2005 PyPy enthusiast Anti-fan of Django StyleShare (2011–2012) Crosspop (2012–)
Wand: Short introduction Image Processing Library Built on top of ImageMagick Modern PythonicTM API Supports CPython 2.6+, PyPy☆, Jython (soon) Well Documented Properly Packaged MIT Licensed Competitior of Python Imaging Library (PIL)
try+finally < with from wand.image import Image with Image(width=480, height=320) as image: assert image.size == (480, 320) image.save(filename='transparent-480x320.jpg')
try+finally < with from wand.color import Color from wand.image import Image with Color('white') as bg: with Image(width=480, height=320, background=bg) as i: assert i.size == (480, 320) i.save(filename='white-480x320.jpg')
Converting from urllib2 import urlopen from wand.image import Image with Image(file=urlopen('http://j.mp/wand-iu-1')) as i: assert i.format == 'jpeg' with i.convert('png') as png: png.save(filename='wand-iu-1.png')
Cropping from urllib2 import urlopen from wand.image import Image with Image(file=urlopen('http://j.mp/wand-iu-2')) as image: image.save(filename='wand-iu-2.jpg') assert image.size == (720, 887) with image[:230, :] as cropped: cropped.save(filename='cropped.jpg')
0.3 will be soon It will include: ● Python 3 compatibility ● Drawing ● Sequences ● EXIF ● Seam carving ● Channels ● and so on http://dahlia.kr/wand/roadmap.html