php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72242 imagecreate() don't display the 1:1 ratio for width:height
Submitted: 2016-05-19 10:21 UTC Modified: 2016-05-29 04:22 UTC
From: davat dot daniel at free dot fr Assigned:
Status: No Feedback Package: GD related
PHP Version: 7.0.6 OS: Jessie
Private report: No CVE-ID: None
 [2016-05-19 10:21 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-19 19:29 UTC] requinix@php.net
-Status: Open +Status: Feedback -Type: Feature/Change Request +Type: Bug
 [2016-05-19 19:29 UTC] requinix@php.net
Looks fine with PHP 7.0.6 and gd 2.1.0. http://i.imgur.com/2zDtu7b.png
Upload your image somewhere.
 [2016-05-29 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 10 21:01:29 2024 UTC