by Jemshope » Thu Jan 12, 2012 2:44 am
I have a simple image uploader - that makes a thumbnail - and resizes the original image if it is too large. My problem is that even though the program works - and resizes the original image - I don't want the image to be resized if it is SMALLER than the max width/height of 400 pixels. How would I write an if/then statement in there that would only resize the original if it was LARGER than 400/400? Because now - it resizes even tiny images to 400/400 pixels, and they come out really blurry when they are displayed. Any thoughts?