Re-Sizing Images With PHP
<p>I have a website where users can upload images. Most of these images are far too big. I know I can limit the size of the file before the user even uploads it, but that is impractical. Most smart phone image sizes range from 2MB- 4MB, and that is what I expect my users to upload. But when they do, even after the page loads, the page lags when I try and scroll. I am assuming this is due to so many large photos being displayed (even though I re-size them with CSS).</p>

<p>Now, I would like to simply:</p>

<p>1) If the image has a width bigger than 960px resize the image to width: 960px and height proportionally.</p>

<p>2) Cut the quality in half</p>

<p>What is the most simple, detailed, way to do this.</p>

<p>Thanks</p>
