#27723 [Opn->Bgs]: ImageTrueColorToPalette(); buggy
| From: | iliaa@php.net | Date: | Mon, 29 Mar 2004 00:46:23 +0000 |
| Subject: | #27723 [Opn->Bgs]: ImageTrueColorToPalette(); buggy | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-56989@lists.php.net to get a copy of this message | ||
ID: 27723
Updated by: iliaa@php.net
Reported By: diabl at borderlessrpg dot com
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: W98
PHP Version: 5.0.0RC1
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Assuming this is in fact a valid bug (keep in mind PNG is
truecolor and when reducing it to pallet, which only had
256 colors and some colors will be lost) this would be a
bug in GD library not PHP.
Previous Comments:
------------------------------------------------------------------------
[2004-03-26 14:18:31] diabl at borderlessrpg dot com
Description:
------------
For some reason, this reduces the colors to less than specified in
$colors. I tried if it reduced them to the same amount with different
images, to 64 colors, one of them became 23 colors, the other one
became 34 colors. Both with and without dither.
Reproduce code:
---------------
$image = ImageCreateFromPng( "many_colors_image_here" );
ImageTrueColorToPalette( $image, $dither, $colors );
Expected result:
----------------
Reducing a PNG image to X colors, with or without dither.
Actual result:
--------------
This reduces the image to less colors than X
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27723&edit=1