LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   php dynamically create transparent png (https://www.linuxquestions.org/questions/programming-9/php-dynamically-create-transparent-png-223470/)

j-ray 08-28-2004 09:02 AM

php dynamically create transparent png
 
Hi,
im trying to create a transparent png or gif with php and assign a text with imagettftext - function, but not very succesful yet. As gdlib does no more support gifs as far as i know id like to createimage() a new transparent png that unfortunately is displayed black. What am i missing?
Thanks

Cedrik 08-28-2004 09:33 AM

try imagecolorallocatealpha(), visit www.php.net for more infos and examples

j-ray 08-29-2004 08:41 AM

thanks a lot. ive already found a different way. create a png with a certain background color, then make this color transparent with
imagecolortransparent($im,$bgc);
cheers, j.


All times are GMT -5. The time now is 03:48 AM.