imagecreatefromjpeg failing

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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?



Re: imagecreatefromjpeg failing

*** escribió/wrote (29 Nov 2006 15:04:40 -0800):
Quoted text here. Click to load it
Quoted text here. Click to load it

If you have access to your web server error log, you can normally find info
there. I'd say the PHP interpreter is crashing.

-+ - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web:
+- Mi web de humor con rayos UVA:

Site Timeline