The problem: i want to display the date in a graphical way, as in jpeg images.
I have done a function that grabs the date in a variable ( $ date). Next thing to go on, displaying it:
header("content-Type: image/pjpeg");
$img = ImageCreate(9 * strlen($date) + 1, 17);
$bg_color = ImageColorAllocate($img, 255 ,255, 255);
$text = ImageColorAllocate($img, 0, 0, 0);
ImageString($img,5,1,0,$date,$text);
ImageJpeg($img);
ImageDestroy($img);
This will display the date with the default font, in black, one line only. It is something like this:
April 4 2003
This is not quite esthetical. I want to display it with a particular font, on two lines, aligned to right, like this:
2003
April 4
Actually i want to format somehow the text in $date variable.
I have tried with ImageTTFText, but up to now, no results.
Does anyone have experienced such a situation?