Forum Moderators: coopster
I know I surely miss the obvious but GD is not by far my forte!
$string = "AAAA";
$im = imagecreatefromjpeg("../default/a.jpg");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
$b=imagejpeg($im);
$src=$b;
$dest="../default/$b.'b.jpg' ";
copy($src, $dest);
if(!copy($src, $dest))
{echo"no";}
imagedestroy($im);
bool imagejpeg [us3.php.net] ( resource $image [, string $filename [, int $quality ]] )
You're trying to copy a boolean return value.
Use the same function to save to a file (with the optional filename parameter) or send to the browser.