ID: 40593
Updated by: [email]tony2001@php.net[/email]
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 [url]http://www.fairtec.fr/bug.png[/url]

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 [url]http://bugs.php.net/?id=40593&edit=1[/url]