php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17444 image* or imageCreateFrom* has size limitation in certain cases
Submitted: 2002-05-26 23:55 UTC Modified: 2002-06-28 18:26 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: scott at scottdial dot com Assigned:
Status: Closed Package: GD related
PHP Version: 4.1.2 OS: WinXP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: scott at scottdial dot com
New email:
PHP Version: OS:

 

 [2002-05-26 23:55 UTC] scott at scottdial dot com
<?
   $im = imageCreateFromPNG("large.png");
   imagePNG($im);
?>

Once large.png is above a certain size, the image is not loaded past a certain offset.

From what I have seen though, if you pipe it out to a file imagePNG($im, "out.png"), then it is a complete file.

I haven't expiremented with it enough to figure out which has the limitation. It would seem that image* does, but you can imageCreate(x,y) the same size image and the image does not get truncated on output to stdout.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-28 05:10 UTC] sniper@php.net
Please try newer version of PHP. Also, provide a URL to one image that this happens with.

 [2002-06-28 17:27 UTC] scott at scottdial dot com
I have upgraded to the most current versions of everything and it appears that the error has been resolved.
 [2002-06-28 18:26 UTC] derick@php.net
Cool, let's close it then.

Derick
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 18 20:05:44 2022 UTC