Let’s say I uploaded an image. I can get its temp directory, then save it with move_uploaded_file() but what if I wanted to also create a thumb and save both in some folder?
I know how to save the uploaded image, but I don’t know how to start manipulating an image and save it after creating a thumb.
I always use Verot PHP Upload class and always had success with it. This PHP class is really simple to implement and can manipulate a image any way you want. It can save the image also in the specified folder.
You can download it from here
To view demos and easy documentation of the Upload class visit http://www.verot.net/php_class_upload_samples.htm?PHPSESSID=5375147e959625e56e0127f3458a6385
Below is a simple sample I got from the website