This is a discussion on "50% transparent png with PHP... no chance?" within the PHP Forum section. This forum, and the thread "50% transparent png with PHP... no chance? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
50% transparent png with PHP... no chance?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
50% transparent png with PHP... no chance?
Hey folks!
I've a little problem here. I want to dynamically create a png image with PHP. the image should be 50% transparent! I think it is not possible with PHP... When you create a image with imagecreate(width,height) it is completely black. So you can only draw on that black background... If you make that background transparent with imagecolortransparent the image is completely transparent. But when you add a 50% opaque rectangle, it is based on a black background. (a white rectangle simply gets grey...). WTF! Does somebody have an idea? |
|
|
|
#2
|
||||
|
||||
|
Re: 50% transparent png with PHP... no chance?
Wouldn't it be easier to create the image using photoshop/fireworks, and then use CSS for placing in in your site.
Also do you have a link to your site that we can look at?
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
#3
|
||||
|
||||
|
Re: 50% transparent png with PHP... no chance?
What browser are you using? IE6 doesn't display PNG transparency, it has a grey background behind it. I would use a gif and use CSS to make it 50% transparent instead of a PNG for cross-browser support.
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
#4
|
||||
|
||||
|
Re: 50% transparent png with PHP... no chance?
How about create the base (semi transparent PNG) in photoshop and paint over it in PHP?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Transparent PNG files | geyids | Graphics and 3D | 2 | Apr 17th, 2008 12:15 |
| Transparent .png and IE6 | andrewlondon | Graphics and 3D | 9 | Sep 4th, 2007 13:12 |
| Second Chance Sunday(Monday) | acrikey | Webforumz Cafe | 10 | May 30th, 2007 16:42 |
| any chance someone can look at this for me please | Accurax | PHP Forum | 3 | Dec 9th, 2006 21:30 |
| transparent background | krazykrisi | Web Page Design | 1 | Aug 25th, 2005 08:51 |