Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
December 27, 2006, 12:32 pm
rate this thread
I have a problem with PHP (GD) created transparent PNG and Microsofts
You will immediately see what the problem is if you view
http://www.useful-scripts.biz/test/transpng/transpng_2.php with IE 7
or Firefox and then with IE 6. It seems that the AlphaImageLoader
works correctly on a PNG image that has been created with an image
processor and then uploaded, but not with a PNG image created with
PHP. It seems to ignore the transparent color set with PHP and instead
to render the black color transparent.
The image in question was created using this code:
$source = imagecreatefrompng("parrot_orig.png");
$transp = imagecolorallocate($source,255,0,0);
The HTML used on the page is this:
src="parrot_php.png" width="325" height="450" border="0"
PHP Version 4.4.3
[GD Version] => bundled (2.0.28 compatible)
[FreeType Support] => 1
[FreeType Linkage] => with freetype
[T1Lib Support] => 1
[GIF Read Support] => 1
[GIF Create Support] => 1
[JPG Support] => 1
[PNG Support] => 1
[WBMP Support] => 1
[XBM Support] => 1
[JIS-mapped Japanese Font Support] => 1
Any idea what could cause this problem?
Thank you for considering it
Martin from Vienna
Re: PHP (GD) created transparent PNG: AlphaImageLoader makes black parts transparent instead of transparent color set with PHP
FWIW, it all looks good in konqueror 3.3.2, Firefox 1.5, and Opera 9.
Also, FWIW, older Internet Exploders did not/could not/would not handle
png images properly -- especially transparency. Probably something to
do with the convicted monopolist not supporting open standards.
Marvin L Jones | jonz | W3DHJ | linux
38.24N 104.55W | @ config.com | Jonesy | OS/2
*** Killfiling google posts: <http//jonz.net/ng.htm>
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum