#40593 [Opn->Bgs]: imagecreatefrompng memory using
| From: | tony2001@php.net | Date: | Thu, 22 Feb 2007 16:15:18 +0000 |
| Subject: | #40593 [Opn->Bgs]: imagecreatefrompng memory using | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109334@lists.php.net to get a copy of this message | ||
ID: 40593
Updated by: tony2001@php.net
Reported By: alebec at sita dot fr
-Status: Open
+Status: Bogus
Bug Type: Performance problem
Operating System: WIN2000
PHP Version: 5.2.1
New Comment:
GD library converts all images into the internal format.
Yes, this format is quite memory consuming.
But that's something not PHP related.
Previous Comments:
------------------------------------------------------------------------
[2007-02-22 16:05:23] alebec at sita dot fr
Description:
------------
Hello, i just update PHP from V4.4.? to V5.2.1 on W2000 iis .
I use GD2 to convert png image file,
since PHP5, i need to set memory_limit=50M to load a png file with
imagecreatefrompng .
With php4 there is no pb with memory_limit=20M
My png file is http://www.fairtec.fr/bug.png
Any explication ?
Reproduce code:
---------------
<?PHP
// error :(
ini_set( "memory_limit", "20M" );
$image=imagecreatefrompng ("bug.png");
?>
<?PHP
// ok :)
ini_set( "memory_limit", "50M" );
$image=imagecreatefrompng ("bug.png");
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40593&edit=1