Req->Bug #72242 [Opn->Fbk]: imagecreate() don't display the 1:1 ratio for width:height

From: Date: Thu, 19 May 2016 19:29:15 +0000
Subject: Req->Bug #72242 [Opn->Fbk]: imagecreate() don't display the 1:1 ratio for width:height
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201203@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72242&edit=1 ID: 72242 Updated by: requinix@php.net Reported by: davat dot daniel at free dot fr Summary: imagecreate() don't display the 1:1 ratio for width:height -Status: Open +Status: Feedback -Type: Feature/Change Request +Type: Bug Package: GD related Operating System: Jessie PHP Version: 7.0.6 Block user comment: N Private report: N New Comment: Looks fine with PHP 7.0.6 and gd 2.1.0. http://i.imgur.com/2zDtu7b.png Upload your image somewhere. Previous Comments: ------------------------------------------------------------------------ [2016-05-19 10:21:06] davat dot daniel at free dot fr Description: ------------ Following testing on a local server with debian Jessie, Apache 2.4.10, PHP 5.6.20 version and GD Version] => 2.1.1-dev, and also with PHP 7.0.5 and Nginx 1.9, I get a bug with imagecreate(). Test script: --------------- Can you test the following script: <?php header("Content-Type: image/png"); $im = imagecreate(500,500); $bl = Imagecolorallocate($im, 0, 0, 0); $wh = Imagecolorallocate($im, 255, 255, 255); Imagearc($im,250,250,400,400,0,360,$wh); Imagepng($im); Imagedestroy($im); ?> Expected result: ---------------- The coordinates of a circle must display a circle and those of a square a square. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72242&edit=1

« previous php.bugs (#201203) next »