Thanks for checking this out.
Basically I have a form that uploads an image and stores it in a folder. I then run a thumbnail function on it and store a thumbnail version of it in a sub folder.
That all works but the bit I'm getting stuck on is trying to re size the original uploaded image. I want to do that because the original image must be 213 * 213. I can't figure it out. I need to re size the original image to 213 * 213 beofre I run the thumbnail function on it otherwise the thumbnail image will be wrong.
I have tried using imagecopyresampled, using the uploaded image as both the source image and destination image. When I try this I get the error:
imagecopyresampled(): supplied argument is not a valid Image resource
Is there a way I can just re size the Image and have it overwritten at the same time?
Any help is greatly appreciated.