Jump to content

PNG merge Prodblem


neugi

Recommended Posts

Hi,

 

i've got 2 png 8 with alpha.

 

i want to merge this 2 images. everything seems to be okay.

 

i got the background with some parts transparent and the numbers i want to render on it. but if i take a close look i can see that at the boundary of the numbers there is no background, even no background form the image below.

 

how can i fix this.

 

attached is the image that has been renderd.

 

my code is :

 

$stoerer = imagecreatefrompng('image/neu/1er.png');
$letter = imagecreatefrompng($norm[$this->vorWert[$i]]);
@imagecopy($stoerer, $letter, $left,$top,0,0,$letterWidth,$letterHeight);

 

maybe somebody can give me a hint how to get this working.

 

best

 

 

Link to comment
https://forums.phpfreaks.com/topic/93480-png-merge-prodblem/
Share on other sites

hi,

 

if i replace @imagecopy($stoerer, $letter, $left,$top,0,0,$letterWidth,$letterHeight); widht @imagecopymerge($stoerer, $letter, $left,$top,0,0,$letterWidth,$letterHeight,100);

 

the transparent part disapear but the letters look bad.

 

is there a way to render the letters on the image so that the brackground is beeing shown behind the transparent parts of the letters?

 

best

Link to comment
https://forums.phpfreaks.com/topic/93480-png-merge-prodblem/#findComment-479330
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.