#34131 [Opn->Fbk]: Artifact left on transparent gifs using image filters
| From: | pajoye@php.net | Date: | Tue, 16 Aug 2005 00:20:42 +0000 |
| Subject: | #34131 [Opn->Fbk]: Artifact left on transparent gifs using image filters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83620@lists.php.net to get a copy of this message | ||
ID: 34131
Updated by: pajoye@php.net
Reported By: mtjo at conninc dot com
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: Win 2K
PHP Version: 5.0.4
-Assigned To:
+Assigned To: pajoye
New Comment:
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...
Previous Comments:
------------------------------------------------------------------------
[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] 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