From:             mtjo at conninc dot com
Operating system: Win 2K
PHP version:      5.0.4
PHP Bug Type:     GD related
Bug description:  Artifact left on transparent gifs using image filters

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 bug report at http://bugs.php.net/?id=34131&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34131&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34131&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34131&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34131&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34131&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34131&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34131&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34131&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34131&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34131&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34131&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34131&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34131&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34131&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34131&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34131&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34131&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34131&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34131&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34131&r=mysqlcfg

Reply via email to