umm...the other thread was to create packing slips. I posted this thread so I could create Labels (4 x 5 inches).
I got the Gd to work but how do I change the size of the text. Basically I need the text to fill up a 4"x5" labels in landscape format but cant get it to work.
here's the sample script from Php's website that I used so far:
$im = imagecreate(800, 800);
// white background and blue text
$bg = imagecolorallocate($im, 255, 255, 255);
$textcolor = imagecolorallocate($im, 0, 0, 255);
// write the string at the top left
imagestring($im, 5, 0, 0, "Hello world!", $textcolor);
// output the image
header("Content-type: image/png");
imagepng($im);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.