You are here: imagecreatefromjpeg failing « PHP Programming Language « IT news, forums, messages
imagecreatefromjpeg failing

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация