PHP-GTK is an extension to PHP that enables you to develop stand alone GUI applications. These applications can run on multiple platforms. With PHP-GTK you can utilize the power of PHP using a graphical desktop application like interface. You can develop many useful kinds of database enabled desktop applications with the PHP-GTK framework.
This tutorial focuses on a thumbnail generation script I wrote for the Accidental President site. Rather than generating a smaller representation of the image, it cuts out a section of the photograph to create an obscure snapshot of the photo itself. The thumbnail's size is variable also, so the script be used across different sites to create different sized thumbnails where needed.
This article will tell you how to write text on an existing PNG image using PHP using PHP's image manipulation functions. The image functions require the GD library to be installed. This article is fairly basic, however some more detail on the basic functions used is included in the article, "write text on a dynamically generated image in PHP"
First, we need the source image. In this example, we're using an image called image.png (with dimension 150x150, though this code will work with any size of image) which is shown below:
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.