php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27766 imageellipse does not honor imagesetthickness
Submitted: 2004-03-29 19:16 UTC Modified: 2004-03-30 02:25 UTC
From: mussulma at uiuc dot edu Assigned:
Status: Not a bug Package: GD related
PHP Version: 5.0.0RC1 OS: RedHat Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mussulma at uiuc dot edu
New email:
PHP Version: OS:

 

 [2004-03-29 19:16 UTC] mussulma at uiuc dot edu
Description:
------------
imageellipse() does not seem to acknowledge anything is set in imagesetthickness() even though the manual page for imagesetthickness states it works for ellipses.  If I change the function to imagerectangle() it works fine.


Reproduce code:
---------------
<?php

$image = imagecreate(400,300);

imagesetthickness($image, 10);

$bg = imagecolorallocate($image, 0, 0, 0);

$col_ellipse = imagecolorallocate($image, 255,0,255);

imageellipse($image, 200, 150, 200, 200, $col_ellipse);
//imagerectangle($image, 50, 50, 100, 100, $col_ellipse);

header("Content-type: image/png");
imagepng($image);
imagedestroy($image);

?>



Expected result:
----------------
I expect to see a 10 pixel wide circle, but it's only one pixel wide.  If I comment out the ellipse line and uncomment the rectangle, I see a 10 pixel thick rectangle.

Actual result:
--------------
The imageellipse line only produces a 1-pixel wide ellipse, but the imagerectangle produces a 10-pixel wide rectangle.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-29 19:20 UTC] mussulma at uiuc dot edu
Oops.  Appears to be a duplicate of 25678.
 [2004-03-30 02:25 UTC] derick@php.net
We don't use the  "duplicate" status anymore; instead we mark them as "bogus" as it was already in the database.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Aug 10 23:00:03 2025 UTC