Solved

Image uploading/resizing issue

Posted on 2007-03-27
2
208 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:RealSnaD
2 Comments
 
LVL 20

Accepted Solution

by:
steelseth12 earned 500 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:RealSnaD
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Permalink issue in Wordpress archive 1 32
Store image url and display it for user profile 6 23
Amazon Redshift 2 23
What is the best PDF generator to use? 1 23
Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now