[php-maint] Bug#458567: imagfilledeellipse draws unwanted line

Ronan mr_platelet+jtzand at fastmail.fm
Tue Jan 1 18:47:34 UTC 2008


Package: php4-gd
Version: 6:4.4.4-8+etch4
Severity: normal


If the PHP function "imagefilledellipse" is used to draw a circle right
at the bottom of the image, a line is also drawn, emanating from the
circle and running along the bottom of the image.  The following script
demonstrates.

----------------
#!/usr/bin/php4 -n
<?php
dl("gd.so");
$im = imagecreatetruecolor(300, 300);
$red = imagecolorallocate($im, 255, 0, 0);
imagefilledellipse($im, 100, 295, 10, 10, $red);
imagepng($im);
----------------

In case you can't reproduce the problem, I'm attaching the image which
the above script produces on my system.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-686
Locale: LANG=en_IE, LC_CTYPE=en_IE (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages php4-gd depends on:
ii  libapache2-mod-php4 [p 6:4.4.4-8+etch4   server-side, HTML-embedded scripti
ii  libc6                  2.3.6.ds1-13etch4 GNU C Library: Shared libraries
ii  libfreetype6           2.2.1-5+etch1     FreeType 2 font engine, shared lib
ii  libgd2-xpm             2.0.33-5.2        GD Graphics Library version 2
ii  libjpeg62              6b-13             The Independent JPEG Group's JPEG 
ii  libpng12-0             1.2.15~beta5-1    PNG library - runtime
ii  libt1-5                5.1.0-2etch1      Type 1 font rasterizer library - r
ii  libx11-6               2:1.0.3-7         X11 client-side library
ii  libxpm4                1:3.5.5-2         X11 pixmap library
ii  php4-cli [phpapi-20050 6:4.4.4-8+etch4   command-line interpreter for the p
ii  php4-common            6:4.4.4-8+etch4   Common files for packages built fr
ii  zlib1g                 1:1.2.3-13        compression library - runtime

php4-gd recommends no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.png
Type: image/png
Size: 403 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20080101/277e1f1d/attachment.png 


More information about the pkg-php-maint mailing list