The PIL short for Python Imaging Library, is a very powerful image processing library in python. It can perform awesome image processing tasks in few lines of code. The following is a code example of some basic things you can do with PIL:
Download the code and files from here.
Download the code and files from here.