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
system information
- class version : 0.26
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : /home/bluexs/:/tmp:/usr/local/lib/php/
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
- MIME type detected as image/jpeg by UNIX file() command
- source variables
file_src_name : CIMG1845.JPG
file_src_name_body : CIMG1845
file_src_name_ext : jpg
file_src_pathname : /tmp/phpZsWhAc
file_src_mime : image/jpeg
file_src_size : 1287972 (max= 8388608)
file_src_error : 0
- source file is an image
image_src_x : 2048
image_src_y : 1536
image_src_pixels : 3145728
image_src_type : jpg
image_src_bits : 8
process file to /home/.../upload/nieuws/klein/
- file size OK
- file mime OK : image/jpeg
- new file name body : 66
- file name safe format
- destination variables
file_dst_path : /home/.../upload/nieuws/klein/
file_dst_name_body : 66
file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : 66.jpg
file_dst_pathname : /home/.../upload/nieuws/klein/66.jpg
- 66.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
resized image object created
image_src_x y : 2048 x 1536
image_dst_x y : 200 x 150
- converting...
fills in transparency with default color
- saving image...
JPEG image created
image objects destroyed
- process OK
process file to /home/.../upload/nieuws/groot/
- file size OK
- file mime OK : image/jpeg
- new file name body : 66
- file name safe format
- destination variables
file_dst_path : /home/.../upload/nieuws/groot/
file_dst_name_body : 66
file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : 66.jpg
file_dst_pathname : /home/.../upload/nieuws/groot/66.jpg
- 66.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
resized image object created
image_src_x y : 2048 x 1536
image_dst_x y : 200 x 150
- converting...
fills in transparency with default color
- saving image...
JPEG image created
image objects destroyed
- process OK