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.
Salut! Thank you very much for the wonderful Upload Class!
I'm currently using Upload Class 0.25 RC1 for multiple files uploading, but having some problems.
Each file uploaded will first be sent to create thumbnail, then again to resize uploaded image larger than 640 px to 640 px.
Sample #1: with $handle->image_crop = '0 0 -12px 0'; thumb1.jpg1.jpg
You can see file uploaded in Sample #1 the larger image has a problem with the pure black part being converted into white. But Sample #2 with that image_crop turned off will not have the problem. I'm using image_crop to add a black space for me to add in watermark.png.
Sample #2: without $handle->image_crop = '0 0 -12px 0'; thumb2.jpg2.jpg
After the uploading process completed, a thumbnails page of images users has just uploaded will be shown to user, but the thumbnail file doesn't exist yet... I'm thinking of adding a sleep() function waiting for thumbnails ready, or do you have a better solution?
I've tested this on both local and live servers, both giving the same problems. Local: Apache/1.3.33 (Darwin) PHP/5.2.2 Live: Apache/1.3.37 (Unix) PHP Version 5.2.3
I'm currently using Upload Class 0.25 RC1 for multiple files uploading, but having some problems.
Each file uploaded will first be sent to create thumbnail, then again to resize uploaded image larger than 640 px to 640 px.
Sample #1: with $handle->image_crop = '0 0 -12px 0';
thumb1.jpg 1.jpg
You can see file uploaded in Sample #1 the larger image has a problem with the pure black part being converted into white. But Sample #2 with that image_crop turned off will not have the problem. I'm using image_crop to add a black space for me to add in watermark.png.
Sample #2: without $handle->image_crop = '0 0 -12px 0';
thumb2.jpg 2.jpg
After the uploading process completed, a thumbnails page of images users has just uploaded will be shown to user, but the thumbnail file doesn't exist yet... I'm thinking of adding a sleep() function waiting for thumbnails ready, or do you have a better solution?
I've tested this on both local and live servers, both giving the same problems.
Local: Apache/1.3.33 (Darwin) PHP/5.2.2
Live: Apache/1.3.37 (Unix) PHP Version 5.2.3
Merci beaucoup!
WoofWoof75