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.
hi, here is the logging part for the first image resizing.
process file to D:/xampp/htdocs/test/1\ - file size OK - file mime OK : image/jpeg - new file name body : 620x320_imagename - file name safe format - destination variables file_dst_path : D:/xampp/htdocs/test/1\ file_dst_name_body : 620x320_imagename file_dst_name_ext : jpg - checking for auto_rename - destination file details file_dst_name : 620x320_imagename.jpg file_dst_pathname : D:/xampp/htdocs/test/1\620x320_imagename.jpg - 620x320_imagename.jpg doesn't exist already - image resizing or conversion wanted - source image is JPEG - setting destination file type to jpg - resizing... check x/y sizes doesn't calculate x/y sizes resized image object created image_src_x y : 425 x 282 image_dst_x y : 425 x 282 - converting... fills in transparency with default color - saving image... JPEG image created image objects destroyed - process OKReply
process file to D:/xampp/htdocs/test/1\
- file size OK
- file mime OK : image/jpeg
- new file name body : 620x320_imagename
- file name safe format
- destination variables
file_dst_path : D:/xampp/htdocs/test/1\
file_dst_name_body : 620x320_imagename
file_dst_name_ext : jpg
- checking for auto_rename
- destination file details
file_dst_name : 620x320_imagename.jpg
file_dst_pathname : D:/xampp/htdocs/test/1\620x320_imagename.jpg
- 620x320_imagename.jpg doesn't exist already
- image resizing or conversion wanted
- source image is JPEG
- setting destination file type to jpg
- resizing...
check x/y sizes
doesn't calculate x/y sizes
resized image object created
image_src_x y : 425 x 282
image_dst_x y : 425 x 282
- converting...
fills in transparency with default color
- saving image...
JPEG image created
image objects destroyed
- process OK