• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

Image uploading/resizing issue

Hi guys,

I have a script that uploads an image and resizes it. It works absolutely fine on my desktop where I test our website. I use Apache. When I try to run this script from our server which has IIS 6.0 it works fine too unless I try to upload picture larger than 1070x1060. For example pictures with these dimensions won't upload: 1071x1061, 1071x1060, 1070x1061. Anything above that won't upload either. I know for sure that it's not a size of a file that matters. I tested 1070x1060 images that were 500KB and 5MB. Both worked. But once I change either dimension by one pixel , it won't work (even if the size of a file is 100KB). Anyone got any idea what the problem can be here?

Yury Merezhkov
Yury Merezhkov
1 Solution
my quess is there is not enough memory allocated to resize the image .... try setting a bigger value for memory_limit in php.ini
Yury MerezhkovDevelopment Team LeadAuthor Commented:
That fixed it. Thanks a lot. I knew it had something to do with php.ini. Last time I was having problems with uploading I had to change max_upload_size in php.ini :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now