graphics

PIL Tutorial: From Basic to Advanced Drawing

The ImageDraw module provides simple 2D graphics for Image objects. You can use it to create new images, annotate or retouch existing images, and generate graphics on the fly for usage on the web. In this tutorial I'm going to show you how to use this module to draw 2D graphics. I'll start with basic shapes and then move on to fairly complicated ones. Read more

PIL Tutorial: Converting Between PNG and GIF

PIL supports both PNG and GIF image formats, but converting between the two while keeping transparency can be tricky. Inside is a list of tips for dealing with transparency and dithering issues when processing GIF image formats in PIL. If you are only interested in the final solution you can skip this tutorial and go directly to the code Read more

PIL Tutorial: How to Create a Button Generator

Python Imaging Library (PIL) is an external library for Python. It supports opening, manipulating, and saving different image file formats. PIL is well documented and easy to install.

In this tutorial I'm focusing on the paste function. At the end of the tutorial, I'll explain a useful script that converts any icon into a web 2.0 style button, just like these: Read more

delicious button feed button blogger button
Syndicate content