Posted by tjhickey on 11/29/06 23:04
Hi, I've searched around the newsgroups for an answer to this but
nothing seems to be helping.
When trying to load an very large JPEG (about 4 meg) I was getting
memory errors as you'd expect. So I bumped the memory_limit up and I
no longer get an error - NOW everything just stops.
Below is a demonstration:
<?
echo "memory_limit: ".ini_get("memory_limit")."<br>";
echo "before function call<br>";
$image = imagecreatefromjpeg('product_images/image.jpg');
echo "after function call<br>";
?>
The Output is:
memory_limit: 40M
before function call
and that's it. PHP is dying on the imagecreatefromjpeg function. I
can run a smaller image through it (about 1 meg) no problem.
Anybody know what's happening here?
Thanks,
Tom
Navigation:
[Reply to this message]
|