Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-28-2004, 10:02 AM   #1
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
php dynamically create transparent png

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?
Old 08-28-2004, 10:33 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
try imagecolorallocatealpha(), visit for more infos and examples
Old 08-29-2004, 09:41 AM   #3
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Original Poster
Rep: Reputation: 145Reputation: 145
thanks a lot. ive already found a different way. create a png with a certain background color, then make this color transparent with
cheers, j.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PNG support in PHP benrose111488 Linux - Software 1 07-11-2005 02:12 PM
how to dynamically create email addresses? AndyFieb Programming 1 05-31-2005 02:26 PM
how to create device node for dynamically allocated major number appas Programming 5 11-01-2004 10:37 AM
PHP PNG image file parsing Proud Programming 4 08-04-2004 01:55 PM
PHP: GD script with a .PNG extension - Possible/How to? Adrohak Programming 0 07-28-2004 02:01 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration