#34131 [Fbk->Opn]: Artifact left on transparent gifs using image filters
| From: | mtjo at conninc dot com | Date: | Tue, 16 Aug 2005 00:09:05 +0000 |
| Subject: | #34131 [Fbk->Opn]: Artifact left on transparent gifs using image filters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83619@lists.php.net to get a copy of this message | ||
ID: 34131
User updated by: mtjo at conninc dot com
Reported By: mtjo at conninc dot com
-Status: Feedback
+Status: Open
Bug Type: GD related
Operating System: Win 2K
PHP Version: 5.0.4
New Comment:
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?
Previous Comments:
------------------------------------------------------------------------
[2005-08-15 07:35:47] sniper@php.net
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
------------------------------------------------------------------------
[2005-08-15 06:36:30] mtjo at conninc dot com
Should say artifact at x,y:2,1 or x,y:2,2 and width varies.
------------------------------------------------------------------------
[2005-08-15 04:29:51] mtjo at conninc dot com
Description:
------------
When using the image filters on transparent gif images, it leaves an
artifact at x,y:1,1 that is approx 170px long. It appears to be the
background color used when the gif is created in a desktop app. This
does not affect transparent pngs. This was tested on PHP5.02 and 5.04
with the bundled gd 2.0.28. See
http://mike.aplosmedia.com/dev/brightness/test_brightness.php
for an
example using the brightness filter.
Loaded modules:
core mod_win32 mpm_winnt http_core mod_so mod_access mod_actions
mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_dir mod_env
mod_imap mod_include mod_isapi mod_log_config mod_mime mod_negotiation
mod_rewrite mod_setenvif mod_userdir mod_php5
Reproduce code:
---------------
<?php
header( 'Content-type: image/gif' );
$filename = 'sample.gif'; // any transparent gif
$source = imagecreatefromgif( $filename );
imagefilter( $source, IMG_FILTER_GAUSSIAN_BLUR );
// Set background transparent
imagecolortransparent( $source, imagecolorat( $source, 1, 1 ) );
imagegif( $source );
imagedestroy( $source );
?>
Expected result:
----------------
The gif image with filtering and a transparent background.
Actual result:
--------------
The gif image with filtering and a transparent background with the
artifact.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34131&edit=1