|
Posted by Andy Hassall on 08/04/06 21:57
On 4 Aug 2006 14:44:18 -0700, "comp.lang.php" <phillip.s.powell@gmail.com>
wrote:
>Actually I was wrong and found out the problem isn't
>imagecreatetruecolor() but it happens to be imagecreatefromjpeg(),
>again, only with certain JPEG images. There is nothing I could find
>that distinguished one JPEG from another; they're all roughly the same
>size, compression, having the same permissions, group and onwership,
>all the same amount of color, all from the same CD source.
>
>I thought it was exceeding of memory_limit, however, using
>memory_get_usage() I am finding the memory allotted for use in the
>script is far below memory_limit, however, it still "dies".
If imagecreatefromjpeg() is exhausting the memory you're not going to be able
to see it from memory_get_usage(); you'll be below the limit before the call,
and it'll die during the call - you won't be able to see it exceeding the limit
apart from the error message (you have turned error_reporting back up to E_ALL,
right?)
And next:
(1) What _is_ output by the script when it fails?
(2) Can you reduce it to a _minimal_ test script - sounds like it could go all
the way down to imagecreatefromjpeg() followed by imagejpeg() ?
(3) If you still can't work it out from there can you make available to the
group examples of (a) an image that fails and (b) a similar one that doesn't
fail?
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|