PHP Image Editing - Bad Images
<p>I have an online image editor I use for our company. It is a simple editor with a crop tool. Pretty much crop out the area you want, takes that section, crops, then resizes down to our display size.</p>

<p>However, every so often we get an image that can not be re-sampled. But upon opening the image in photoshop and re-uploading, it is croppable. We may have broke down one cause, when a customer attaches the image in the email body and not as attachment. But sometimes users upload images that can not be cropped. We do the same thing, pull down original, open in PS, re-save, upload and is workable.</p>

<p>But then I can across photoshops online editor and this one <a href="http://pixlr.com/editor/" rel="nofollow">http://pixlr.com/editor/</a>.
Tried both. I uploaded the bad photo and simply just saved it (PS site you have to make changes - other site you do not). So, I am wondering what the second site is doing to fix these. </p>

<p>What is being missed. Why can not these images be resampled.</p>

<p>The error: "imagecopyresampled(): supplied argument is not a valid Image resource"</p>
