Re: imagecreatefromjpeg fails on large files
| From: | raditha dissanayake | Date: | Sat, 17 Jul 2004 02:55:26 +0000 |
| Subject: | Re: imagecreatefromjpeg fails on large files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190806@lists.php.net to get a copy of this message | ||
tmp1000@fastmail.fm wrote:
I'm running into a problem where imagecreatefromjpeg fails and gives me a warning like this: Warning: imagecreatefromjpeg(): 'albums/userpics/10001/dave_sharath.jpg' is not a valid JPEG file in /homepages/32/d91926016/htdocs/photos/include/picmgmt.inc.php on line 202 Hav you had luck running the script from the command line? if that works for you it could be that you are hitting the memory limits for your php scripts. A JPEG when loaded in memory could take up more memory than the size of the file.-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.