RkBlog

Hardware, programming and astronomy tutorials and reviews.

Pystacia - image manipulation library for Python

Quick look at Pystacia - no-compiler image manipulation library for multiple Python versions

Pystacia is "yet another" image manipulation library for Python... but it has some advantages over other libs: Pystacia offers a lot of functionality that is covered in the documentation. It can replace PIL in web applications - for example in thumbnail generation. Here is a simple example:
import pystacia

image = pystacia.read('example.jpg')

image.rescale(320, 240)
image.write('output1.jpg')
image.rotate(30)
image.write('output2.jpg')
image.rescale(factor=2)
image.denoise()
image.emboss()
image.write('output3.jpg')

image.close()
pystacia example output
RkBlog

27 November 2011;

Comment article