class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
See all posts See thread Reply
$handle->clean();
If you use clean(), it will delete your source image. Remove the following line in your code:
clean() is used for uploads to delete the uploaded file, and eventually when working on local files if you want to delete your original file.