tags:

views:

49

answers:

1

How do you add another image to a image in php the itme i want to add is images/rank1.jpg?

 $rImg = ImageCreateFromJPEG("images/card/test.jpg");
 $cor = imagecolorallocate($rImg, 255, 255, 255); 
 imagestring($rImg,5,60,3,$username,$cor);
+3  A: 

You are looking for the imagecopy...() functions like imagecopyresampled().

The User Contributed Notes in the Manual provide lots of examples. If you want to add watermarks with transparency, this might work for you.

Pekka
The php manual's comments are indeed great :)
AntonioCS