cannot resize images over a certain filesize!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gavrd1
Forum Newbie
Posts: 2
Joined: Sun Mar 16, 2008 2:37 pm

cannot resize images over a certain filesize!

Post by gavrd1 »

hi there,

i'm using the scripts from http://fonant.mirrors.phpclasses.org...kage/1261.html (found in the files resize.php, sample.php) where in my CMS a user uploads an image and using the defined functions/classes in there it resizes the image and saves it.

i've used this in other sites without any problems although it seems in this case where a file uploaded may be greater than 1mb then it does not resize it and breaks the script with no further output or actions. i know it seems to be a problem with this function as if i do not use it then the upload actions are fine. generally, it only seems to function on smaller files up to a few hundred k in size.

i am on a 1and1 shared server and in my upload form i have set the max_file_size at 5000000, and my phpinfo on the server shows that my upload_max_filesize is at 20mb anyway and post_max_size is 8mb so it does not appear that that is a problem?

any ideas?
anto91
Forum Commoner
Posts: 58
Joined: Mon Mar 10, 2008 10:59 am
Location: Sweden

Re: cannot resize images over a certain filesize!

Post by anto91 »

just guessing but the max allowed memory for php to use?
gavrd1
Forum Newbie
Posts: 2
Joined: Sun Mar 16, 2008 2:37 pm

Re: cannot resize images over a certain filesize!

Post by gavrd1 »

set at 40m, ive also set set_time_limit to 0 so there is no time out.

still the same, if i dont use the function to resize and let it upload a large file 3mb say, it uploads fine. it just seems to be when that function is applied to files over a certain size.
Post Reply