From: yorick at gmx dot ch
Operating system: Linux
PHP version: 4.3.11
PHP Bug Type: GD related
Bug description: ImagePolygon draws broken lines when using Antialiasing
Description:
------------
ImagePolygon draws broken lines when Antialiasing is
enabled. See example at http://
glassdbase.unibas.ch/test.php
Reproduce code:
---------------
<?php
$image = imagecreatetruecolor(500, 300);
$bg = imagecolorallocate($image, 0, 0, 0);
$col_poly = imagecolorallocate($image, 255, 255, 255);
$poly = array(35, 190, 42, 191, 45, 192, 48, 186, 51, 182, 63, 180, 78,
175, 91, 177, 115, 185,
121, 184,
131, 177,
174, 133,
201, 121,
429, 60,
435, 82,
435, 260,
35, 260
);
imageantialias($image, true);
imagepolygon($image, $poly, count($poly) / 2, $col_poly);
header("Content-type: image/png");
imagepng($image);
?>
Expected result:
----------------
An antialiased polygon (=no interruption) as described
in documentation.
Actual result:
--------------
See output of above example at http://
glassdbase.unibas.ch/test.php
--
Edit bug report at http://bugs.php.net/?id=34020&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34020&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34020&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34020&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34020&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34020&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34020&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34020&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34020&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34020&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34020&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34020&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34020&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34020&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34020&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34020&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34020&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34020&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34020&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34020&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34020&r=mysqlcfg