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: overlapping text layers

one solution is: rather placing text directly in target image, place in secondary image , perform imagecopymerge() operation.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -