Bug #51128 [Com]: imagefill() doesn't work with large images
| From: | " | Date: | Tue, 09 Mar 2010 14:33:52 +0000 |
| Subject: | Bug #51128 [Com]: imagefill() doesn't work with large images | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-148433@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51128&edit=1
ID: 51128
Comment by:
Reported by: admin-team at suresupport dot com
Summary: imagefill() doesn't work with large images
Status: Assigned
Type: Bug
Package: GD related
Operating System: Linux Debian 64bit
PHP Version: 5.2.12
Assigned To: pajoye
New Comment:
It seems that the following patch fixes the problem:
http://bugs.libgd.org/?do=details&task_id=177
Previous Comments:
------------------------------------------------------------------------
[2010-03-02 09:01:50] admin-team at suresupport dot com
Hello,
this is the info regarding the GD configuration for both servers:
------------------------------------
Debian Server 64bit:
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
------------------------------------
RedHat Server 32bit:
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.3
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
------------------------------------------------------------------------
[2010-03-01 21:42:06] pajoye@php.net
Can you paste the GD section of phpinfo of both servers please?
------------------------------------------------------------------------
[2010-02-24 15:51:20] admin-team at suresupport dot com
Hello Pajoye,
Thank you for your anwser!
The code in test1.php & test2.php is taken from official documentation
of the function:
http://php.net/manual/en/function.imagefill.php
The problem described in my first post doesn't exist on another type of
server - RedHat Linux 32bit - I get 2 red rectangles.
Thank you
------------------------------------------------------------------------
[2010-02-23 21:15:55] pajoye@php.net
Please allocate a background and then a color to use for the fill.
------------------------------------------------------------------------
[2010-02-23 21:09:38] admin-team at suresupport dot com
Description:
------------
Hello,
Please check this URL:
http://imagefill.server260.com/
http://imagefill.server260.com/test1.php is
working properly when the
size of the image is 255x255 pixels and is producing a red rectangle
http://imagefill.server260.com/test2.php is
the same code with image
size of 256x256 producing a black rectangle
You should check http://imagefill.server260.com/info.php for the
PHP
options.
Reproduce code:
---------------
http://imagefill.server260.com/test1.source.txt
http://imagefill.server260.com/test2.source.txt
http://imagefill.server260.com/test.diff.txt
Expected result:
----------------
When I run http://imagefill.server260.com/test2.php I
should get a red
rectangle.
Actual result:
--------------
But I get a black rectangle.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51128&edit=1