LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 08-28-2004, 10:02 AM   #1
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,457

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

Rep: Reputation: 242Reputation: 242Reputation: 242
try imagecolorallocatealpha(), visit www.php.net for more infos and examples
 
Old 08-29-2004, 09:41 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,457

Original Poster
Rep: Reputation: 104Reputation: 104
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.
 
  


Reply


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


All times are GMT -5. The time now is 11:37 AM.

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