Debian Bug report logs - #426131
bug in php5-gd (or libgd2-xpm?): imagerectangle() draws thin rectangles non-properly

version graph

Package: php5-gd; Maintainer for php5-gd is (unknown);

Reported by: "Alexey Bashtanov" <bashtanov@imap.cc>

Date: Sat, 26 May 2007 14:57:02 UTC

Severity: normal

Found in version php5/5.2.0-8+etch1

Fixed in version 5.2.6.dfsg.1-1+lenny4

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#426131; Package php5-gd. (full text, mbox, link).


Acknowledgement sent to "Alexey Bashtanov" <bashtanov@imap.cc>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "Alexey Bashtanov" <bashtanov@imap.cc>
To: submit@bugs.debian.org
Subject: bug in php5-gd (or libgd2-xpm?): imagerectangle() draws thin rectangles non-properly
Date: Sat, 26 May 2007 18:53:55 +0400
Package:php5-gd
Version:5.2.0-8+etch1

My OS is 2.6.18.4.686 (2.6.18.dsfg.1-12)
libgd2-xpm is 2.0.34~rc1-2
libc6 is 2.3.6.ds1-13
libc6-i686 is 2.3.6.ds1-13

I write:
	$img1=imagecreate(100,100);
	$white=imagecolorallocate($img1,255,255,255);
	imagecolortransparent($img1, $white);
	$red=imagecolorallocate($img1,255,0,0);
	imagerectangle($img1,0,$w-1,0,$h-1,$white);

	/* Here we call it */
	imagerectangle($img1,5,5,5,5,$red);

	imagepng($img1, "1.png");
	imagedestroy($img1);
I expect:
	a red 1x1 dot at (5,5),
	or at least an x-y-symmetric figure
I get:
	a 1x3 red line

another example

I write:
	imagerectangle($img1,5,5,10,5,$red);
I expect:
	a 6x1 line
I get such a figure:
	x    x
	xxxxxx
	x    x
-- 
  ljoha
  bashtanov@imap.cc

-- 
http://www.fastmail.fm - Or how I learned to stop worrying and
                          love email again




Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Fri, 08 Jan 2010 16:03:05 GMT) (full text, mbox, link).


Notification sent to "Alexey Bashtanov" <bashtanov@imap.cc>:
Bug acknowledged by developer. (Fri, 08 Jan 2010 16:03:06 GMT) (full text, mbox, link).


Message #10 received at 426131-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: 426131-done@bugs.debian.org
Subject: #426131: bug in php5-gd (or libgd2-xpm?): imagerectangle() draws thin rectangles non-properly
Date: Fri, 8 Jan 2010 16:59:09 +0100
Version: 5.2.6.dfsg.1-1+lenny4

php5 version in lenny is ok.

Thank you,
-- 
Ondřej Surý <ondrej@sury.org>
http://blog.rfc1925.org/




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 06 Feb 2010 07:29:47 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 03:05:55 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.