From: diabl at borderlessrpg dot com Operating system: W98 PHP version: 5.0.0RC1 PHP Bug Type: GD related Bug description: ImageTrueColorToPalette(); buggy
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 bug report at http://bugs.php.net/?id=27723&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27723&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27723&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27723&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27723&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27723&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27723&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27723&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27723&r=support Expected behavior: http://bugs.php.net/fix.php?id=27723&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27723&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27723&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27723&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27723&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27723&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27723&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27723&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27723&r=float
