png thing

This is merely a half-assed attempt to demonstrate how to make an image using GD and an input form. Just to muddy the waters, I threw in some hex to decimal and vice versa conversions copied from the notes.

In this example, the image is written to the "cache" directory, which needs to be writable by the server, and then eventually flushed by a cron script.

If you feel like playing with it, just view the source and copy it into an editor.

(if you enter a hex value, the rgb values will be ignored and overwritten)

Red 0 - 255
Green 0 - 255
Blue 0 - 255
hex value = #0
Width pixels
Height pixels

picture 1

view source