ID: 34131 Updated by: [EMAIL PROTECTED] Reported By: mtjo at conninc dot com -Status: Open +Status: Feedback Bug Type: GD related Operating System: Win 2K PHP Version: 5.0.4 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [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