I want to be an animated image
and on that , in the .php file to set a text to be on that image

something like createimagefrompng

PHP Code:
<?php

header
('Content-Type: image/gif');
$newimg imagecreatetruecolor45095 ) or die ( 'GD Library not available atm.' );
$cs ImageCreateFromgif("boobs.gif");
$culoare_text_alb imagecolorallocate($newimg255255255);

imagettftext($cs,10,0,5,14,$culoare_text_user,"fonts/font_captcha.ttf","Text1");
imagettftext($cs,7,0,190,14,$culoare_text_rang,"fonts/font_captcha.ttf","Text1");
imagegif($cs);
imagedestroy($cs);

?>