Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Image uploading/resizing issue

Posted on 2007-03-27
2
Medium Priority
?
256 Views
Last Modified: 2010-05-18
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?

Thanks.
0
Comment
Question by:Yury Merezhkov
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 20

Accepted Solution

by:
steelseth12 earned 2000 total points
ID: 18804098
my quess is there is not enough memory allocated to resize the image .... try setting a bigger value for memory_limit in php.ini
0
 
LVL 7

Author Comment

by:Yury Merezhkov
ID: 18804187
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 :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question