Natch
07-21-2004, 10:00 PM
OK - now we all know how to make gradients using our weapon-of-choice image editor, but surely it could be easier than that ?
Well from the guy who brought you PNG24 transparent images in IE without that grey box rendering effect (https://vborg.vbsupport.ru/showthread.php?t=67413&highlight=PNG24) comes the next big thing - gradients on the fly! Dynamic images, that will be cached by your browser and can be written to the server if required (not yet implemented).
All you need is a text editor, and an array of Hex colour codes to match your forum, and you are ready to rock and roll.
Upload the following new files:
forumroot/images/gradients/gradient.php
forumroot/includes/class.gradient_image.php
The forumroot/images/gradients/gradient.php file has instructions for usage in the comments - the class I have used is from phpclasses.org - please read the licensing requirements if you plan on using this in a for-profit situation.
Demo: Demonstration of three different styles of gradient, with four different colours each (http://mobileforces.org/forums/images/gradients/demo.html) - take a look @ the html source for how I am doing each image...
Any questions?
Well from the guy who brought you PNG24 transparent images in IE without that grey box rendering effect (https://vborg.vbsupport.ru/showthread.php?t=67413&highlight=PNG24) comes the next big thing - gradients on the fly! Dynamic images, that will be cached by your browser and can be written to the server if required (not yet implemented).
All you need is a text editor, and an array of Hex colour codes to match your forum, and you are ready to rock and roll.
Upload the following new files:
forumroot/images/gradients/gradient.php
forumroot/includes/class.gradient_image.php
The forumroot/images/gradients/gradient.php file has instructions for usage in the comments - the class I have used is from phpclasses.org - please read the licensing requirements if you plan on using this in a for-profit situation.
Demo: Demonstration of three different styles of gradient, with four different colours each (http://mobileforces.org/forums/images/gradients/demo.html) - take a look @ the html source for how I am doing each image...
Any questions?