We will do some programming at the end of this chapter, where we will utilize PIL to do an on-the-fly image manipulation. But before we go on, we should make one thing clear: Plone is not image manipulation software. If you want sophisticated image manipulation, use Photoshop (http://www.adobe.com/de/products/photoshop/photoshop/) or GIMP (http://www.gimp.org/). These applications will give you the full power of image manipulation possibilities. Nevertheless, Plone has some limited features for standard image manipulation and can be easily enhanced with at least everything that PIL provides. Some of these operations are already exposed in the Transform tab as we have seen at the beginning of this chapter.
Now let's see an example. We assume that we want to protect an image with a watermark. Therefore, we write a view that renders the protected image. The image itself should not be touched in any way. All operations should be handled on the fly when calling the view.
First...