Req #72242 [NEW]: imagecreate() don't display the 1:1 ratio for width:height

From: Date: Thu, 19 May 2016 10:21:09 +0000
Subject: Req #72242 [NEW]: imagecreate() don't display the 1:1 ratio for width:height
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201192@lists.php.net to get a copy of this message
From:             davat dot daniel at free dot fr
Operating system: Jessie
PHP version:      7.0.6
Package:          GD related
Bug Type:         Feature/Change Request
Bug description:imagecreate() don't display the 1:1 ratio for width:height

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 bug report at https://bugs.php.net/bug.php?id=72242&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=72242&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=72242&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=72242&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=72242&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=72242&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=72242&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=72242&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=72242&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=72242&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=72242&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=72242&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=72242&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=72242&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72242&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=72242&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=72242&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=72242&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72242&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=72242&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=72242&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#201192) next »