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.
system information - class version : 0.33dev - operating system : WINNT - PHP version : 5.5.12 - GD version : 2.1.0 - supported image types : png jpg gif bmp - open_basedir : no restriction - upload_max_filesize : 64M (67108864 bytes) - language : fr_FR source is an uploaded file - upload OK - file name OK determining MIME type - Checking MIME type with Fileinfo PECL extension MAGIC path defaults to C:\wamp\bin\php\php5.5.12/extras/magic Fileinfo PECL extension failed (finfo_open) - Checking MIME type with UNIX file() command UNIX file() command not availabled - Checking MIME type with mime.magic file (mime_content_type()) MIME type detected as image/png by mime_content_type() - MIME validated as image/png source variables - You can use all these before calling process() file_src_name : a11.png file_src_name_body : a11 file_src_name_ext : png file_src_pathname : C:\wamp\tmp\php3121.tmp file_src_mime : image/png file_src_size : 39539 (max= 67108864) file_src_error : 0 - source file is an image image_src_x : 481 image_src_y : 32 image_src_pixels : 15392 image_src_type : png image_src_bits : 8 process file to C:/wamp/www/test_img_php/images/\ - file size OK - file mime OK : image/png - new file name ext : jpg - new file name body : actu - file name safe format - destination variables file_dst_path : C:/wamp/www/test_img_php/images/\ file_dst_name_body : actu file_dst_name_ext : jpg - checking for auto_rename auto_rename to actu_1.jpg - destination file details file_dst_name : actu_1.jpg file_dst_pathname : C:/wamp/www/test_img_php/images/\actu_1.jpg - actu_1.jpg doesn't exist already - image resizing or conversion wanted - source image is PNG - resizing... calculate y size resized image object created image_src_x y : 481 x 32 image_dst_x y : 300 x 20 - converting... fills in transparency with default color - saving image... JPEG image created image objects destroyed - process OKReply
system information
- class version : 0.33dev
- operating system : WINNT
- PHP version : 5.5.12
- GD version : 2.1.0
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 64M (67108864 bytes)
- language : fr_FR
source is an uploaded file
- upload OK
- file name OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
MAGIC path defaults to C:\wamp\bin\php\php5.5.12/extras/magic
Fileinfo PECL extension failed (finfo_open)
- Checking MIME type with UNIX file() command
UNIX file() command not availabled
- Checking MIME type with mime.magic file (mime_content_type())
MIME type detected as image/png by mime_content_type()
- MIME validated as image/png
source variables
- You can use all these before calling process()
file_src_name : a11.png
file_src_name_body : a11
file_src_name_ext : png
file_src_pathname : C:\wamp\tmp\php3121.tmp
file_src_mime : image/png
file_src_size : 39539 (max= 67108864)
file_src_error : 0
- source file is an image
image_src_x : 481
image_src_y : 32
image_src_pixels : 15392
image_src_type : png
image_src_bits : 8
process file to C:/wamp/www/test_img_php/images/\
- file size OK
- file mime OK : image/png
- new file name ext : jpg
- new file name body : actu
- file name safe format
- destination variables
file_dst_path : C:/wamp/www/test_img_php/images/\
file_dst_name_body : actu
file_dst_name_ext : jpg
- checking for auto_rename
auto_rename to actu_1.jpg
- destination file details
file_dst_name : actu_1.jpg
file_dst_pathname : C:/wamp/www/test_img_php/images/\actu_1.jpg
- actu_1.jpg doesn't exist already
- image resizing or conversion wanted
- source image is PNG
- resizing...
calculate y size
resized image object created
image_src_x y : 481 x 32
image_dst_x y : 300 x 20
- converting...
fills in transparency with default color
- saving image...
JPEG image created
image objects destroyed
- process OK