scott212 Posted January 16, 2007 Share Posted January 16, 2007 I can't figure it out and I can't get a decent error out of it. In a class I have a basic routine to handle an uploaded image and resize it. It works fine on images less than 1MB but anything over just gives a silent death. I've narrowed it down to the specific 'imagecreatefromjpeg' line by putting prints above and after it and only the top one prints. The line is:$this->src_image = imagecreatefromjpeg($this->in_image) or die("could not open image");Please - I'm pulling my hair out! Quote Link to comment Share on other sites More sharing options...
scott212 Posted January 16, 2007 Author Share Posted January 16, 2007 I checked the max upload size and it's 20MB. The jpg in question has a very large resolution (8000x8000) as a test but file size is only 1.05 MB. Do I need the 'memory_limit' in the php.ini increased? Is there any way to handle this if I can't get it upped? Quote Link to comment Share on other sites More sharing options...
scott212 Posted January 16, 2007 Author Share Posted January 16, 2007 Doing some more experimenting:2500x865 @ 758K - pass3000x990 @ 1099K - pass5000x1650 @ 865K - failSo it's the extreme resolutions that are causing the failand not the file size. That really leads me to believe thatit's is ram available for processing. I could see putting in a condition for max width and height, I've just never seen anyonedo that before. Quote Link to comment Share on other sites More sharing options...
scott212 Posted January 16, 2007 Author Share Posted January 16, 2007 still stumped.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.