ID: 34131 User updated by: mtjo at conninc dot com Reported By: mtjo at conninc dot com Status: Open Bug Type: GD related Operating System: Win 2K PHP Version: 5.0.4 Assigned To: pajoye New Comment:
Forgot to add, here are the examples to reproduce the correct image outputs. http://mike.aplosmedia.com/dev/test_gif/test_gif.php Previous Comments: ------------------------------------------------------------------------ [2005-08-16 06:54:47] mtjo at conninc dot com After further testing, I found that pngs will also produce the artifact. After playing around with the code, I came up with two methods to correctly reproduce the transparency in both png and gif images. For the gifs, I do the filtering, save as a temp png file, create a new png file, set transparent then save as gif. The png required that I determine a color not in the source images palette and set that as the background to be set as transparent. If you can point me to a more efficient method for these, I'm all ears. IMO, the prob is with the limitation and inferiority of the gif format and probably there is something in the gd lib affecting this too. I hope this helps in some way. ------------------------------------------------------------------------ [2005-08-16 02:32:06] mtjo at conninc dot com The following link demonstrates the problem. This is on a RH server running PHP5.04. http://mike.aplosmedia.com/dev/brightness/test_brightness.php ------------------------------------------------------------------------ [2005-08-16 02:20:41] [EMAIL PROTECTED] Please provide the sources images, the result images (what you get) and the result you may expect (approximativally). Please use the bundled GD only, your php must be compiled using "--with-gd" not --with-gd=/... Using Gif as output of a filtered image will reduce the quality of any filter... ------------------------------------------------------------------------ [2005-08-16 02:09:03] mtjo at conninc dot com I tried the script with the same results using the following builds. PHP 5.1 Fri, 12 Aug 2005 23:13:30 +0000 PHP 5.04 Mon, 08 Aug 2005 23:22:28 +0000 I noticed that both of those still use the gd 2.0.28 build. I can't find a complied dll for win32 for the latest 2.0.33 build. Since full gif support was again added at 2.0.28, perhaps it is related to this. Is there a php_gd2.dll for the 2.0.33 lib available? ------------------------------------------------------------------------ [2005-08-15 07:35:47] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/34131 -- Edit this bug report at http://bugs.php.net/?id=34131&edit=1