php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51128 imagefill() doesn't work with large images
Submitted: 2010-02-23 21:09 UTC Modified: 2010-04-28 16:36 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: admin-team at suresupport dot com Assigned: pajoye (profile)
Status: Closed Package: GD related
PHP Version: 5.2.12 OS: Linux Debian 64bit
Private report: No CVE-ID: None
 [2010-02-23 21:09 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-23 21:15 UTC] pajoye@php.net
Please allocate a background and then a color to use for the fill.
 [2010-02-24 15:51 UTC] 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-03-01 21:42 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-03-01 21:42 UTC] pajoye@php.net
Can you paste the GD section of phpinfo of both servers please?
 [2010-03-02 09:01 UTC] 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-04 11:35 UTC] pajoye@php.net
-Status: Open +Status: Assigned
 [2010-03-09 15:33 UTC] tm at del dot bg
It seems that the following patch fixes the problem: http://bugs.libgd.org/?do=details&task_id=177
 [2010-03-12 11:43 UTC] admin-team at suresupport dot com
I applied the suggested patch from http://bugs.libgd.org/?do=details&task_id=177.
And I confirm that my issue is fixed.

Pajoye does the PHP team have plans to integrate that patch in the PHP bundled GD library ? 

Thank you
 [2010-04-28 16:35 UTC] pajoye@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=298701
Log: - - Fixed #51128, imagefill() doesn't work with large images
 [2010-04-28 16:36 UTC] pajoye@php.net
-Status: Assigned +Status: Closed
 [2010-04-28 16:36 UTC] pajoye@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 08:01:29 2024 UTC