php - overlapping text strings created with imagettftext -
i have image resource created png transaprency support following:
$image = imagecreatetruecolor($new_width, $new_height); imagealphablending($image, false); imagesavealpha($image, true); $new_image_bg = imagecolorallocatealpha($image, 255, 255, 255, 127); imagefill($image, 0, 0, $new_image_bg);
i'm adding overlapping layers of text image resource imagettftext()
, overwrites current area of image. i'm trying merge existing image resource maintaining transparency of text string. below example of i'm trying avoid:
one solution is: rather placing text directly in target image, place in secondary image , perform imagecopymerge()
operation.
Comments
Post a Comment