Dynamic Image Generation

So what do we mean by dynamic image generation? From a visitor's point of view they arrive at your web site to be presented with an image which has been specially created for them. Behind the scenes what's happened is that our web server (using the ImageGlue graphics library) has generated the image on-the-fly in response to the page request. One particularly common application is to insert uploaded image files into a web site. This image upload allows the files to be resized and styled to fit in with the site. Image processing is what ImageGlue is all about.

Dynamic Image Generation

Why not generate pictures in response to data entered by clients? You could plot a graph based on statistics from an external feed or add text to a web postcard using information provided by a visitor.

Dynamic image generation using ImageGlue can be extremely sophisticated. On our example web site you will find examples of blends using alpha channels; rotations and transforms. One demonstration allows you to stick virtual PostIt notes onto a virtual fridge. Another generates an illustrative graphic based on statistics that you provide.

Image Upload

Image upload is the most common use of a graphics library like ImageGlue. For instance you want to allow advertisers to put their logos onto your web site. All too often the graphics they send they come in the wrong format, the wrong size and completely out of style with your beautifully designed site. What you need is ImageGlue to do some image processing on the graphics as they arrive.

To get the graphics onto your web server you could use FTP or email but the simplest method for small images is http file upload. This is a facility available in almost all web browsers which allows them to submit files as part of a form. In the same way you ask people to enter their email address you just ask them to choose their file. Both get sent to the web server when they click on submit.

After you have your graphics files you need to do a little image processing on them to make them the right size, shape and style for your web site. A little simple script on an Active Server Page (ASP) and you've implemented image upload. To see it in action visit our demonstration web site.

Dynamic image generation and image upload. Make your site extra sticky with WebSupergoo.