I was wondering if there was a creative way to set the width in imagecreate to a percantage instead of px X px
EXAMPLE:
imagecreate(100%, 50%);
Really I would like to create an image that is 100% of the screen width.
Here is my current code:
$im = imagecreate(640,50);
$white = imagecolorallocate($im, 255,255,255);
$black = imagecolorallocate($im, 0,0,0);
imagecolortransparent($im,$white);
$text=stripslashes($_GET["text"]);
imagettftext($im, 26, 0, 26, 36, $black, $font, "$text");
imagepng($im);
imagedestroy($im);
Any thoughts or ideas?