Saturday, December 1, 2012

Placeholder Image Generator Service

This morning being rather young and foolish.. I created a dynamic image generator for place-holders and backgrounds. Just a code snippet that generates PNG, GIF or JPG images of variable size and color, optionally prints the dimensions or a custom text. Images are created only once and saved to the File System.
Nothing fancy but functional for Web Development.

Default parameters:
width: 1px; height: 1px; color: #FFFFFF; text: none; type: png

White GIF

PNG with alpha

PNG with alpha and printed dimensions

GIF with custom text World.gif

You have to configure mod_rewrite with the contained .htaccess file or the Apatche config to use the path syntax. Otherwise use GET vars (width, height, color, text, type)

Just download the image generator and run it on you local server!

No comments:

Post a Comment