#32042 [Opn->Bgs]: small rectangles are broken

From: Date: Mon, 28 Feb 2005 10:09:24 +0000
Subject: #32042 [Opn->Bgs]: small rectangles are broken
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74672@lists.php.net to get a copy of this message
ID: 32042 Updated by: pajoye@php.net Reported By: guth at fiifo dot u-psud dot fr -Status: Open +Status: Bogus Bug Type: GD related Operating System: Linux PHP Version: 5CVS-2005-02-21 (dev) Assigned To: pajoye 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. Even if you think it is not a bug, we often know better than you, please consult the support channels first before even considering to reopen this report. Thank you for your interest in PHP. Seems like you use an external GD. Please try using the bundled gd (configure --with-gd, not with-gd=/path/to/ext/gd). --Pierre Previous Comments: ------------------------------------------------------------------------ [2005-02-28 10:59:33] guth at fiifo dot u-psud dot fr Actual result : http://artichow.org/gd/actual.png Expected result : http://artichow.org/gd/expected.png ------------------------------------------------------------------------ [2005-02-28 09:38:32] pajoye@php.net Cannot reproduce here, please provide an url to the expected result and one with what you get now. --Pierre ------------------------------------------------------------------------ [2005-02-21 10:40:17] guth at fiifo dot u-psud dot fr Description: ------------ imagerectangle() does not work with small rectangles. With the same code, imagefilledrectangle() works. See the result: http://haricow.org/gd/rectangle.png Reproduce code: --------------- <?php $image = imagecreatetruecolor(10, 10); $white = imagecolorallocate($image, 255, 255, 255); imagerectangle($image, 2, 4, 8, 4, $white); imagecolordeallocate($image, $white); header('Content-Type: image/png'); imagepng($image); ?> Expected result: ---------------- A rectangle. Actual result: -------------- A strange shape. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32042&edit=1

« previous php.bugs (#74672) next »