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 - GD version : 2.0.34 - supported image types : png jpg gif bmp - open_basedir : no restriction - language : en_GB source is a local file /tmp/phppj3C9h - local file name OK - MIME type detected as image/jpeg by UNIX file() command - source variables file_src_name : phppj3C9h file_src_name_body : phppj3C9h file_src_name_ext : file_src_pathname : /tmp/phppj3C9h file_src_mime : image/jpeg file_src_size : 36753 (max= 8388608) file_src_error : 0 - source file is an image image_src_x : 1000 image_src_y : 804 image_src_pixels : 804000 image_src_type : jpg image_src_bits : 8 process file to /var/www/*************/web/images/produits/ - file size OK - script phppj3C9h renamed as phppj3C9h.txt! - file mime OK : text/plain - new file name body : mini_1 - file name safe format - destination variables file_dst_path : /var/www/*************/web/images/produits/ file_dst_name_body : mini_1 file_dst_name_ext : txt - image operation, keep extension - no auto_rename if same filename exists - destination file details file_dst_name : mini_1.txt file_dst_pathname : /var/www/*************/web/images/produits/mini_1.txt - no overwrite checking - image resizing or conversion wanted - source image is JPEG - setting destination file type to txt - resizing... use plain sizes resized image object created image_src_x y : 1000 x 804 image_dst_x y : 1 x 1 - converting... fills in transparency with default color - saving image... JPEG image created image objects destroyed - process OKReply
system information
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : en_GB
source is a local file /tmp/phppj3C9h
- local file name OK
- MIME type detected as image/jpeg by UNIX file() command
- source variables
file_src_name : phppj3C9h
file_src_name_body : phppj3C9h
file_src_name_ext :
file_src_pathname : /tmp/phppj3C9h
file_src_mime : image/jpeg
file_src_size : 36753 (max= 8388608)
file_src_error : 0
- source file is an image
image_src_x : 1000
image_src_y : 804
image_src_pixels : 804000
image_src_type : jpg
image_src_bits : 8
process file to /var/www/*************/web/images/produits/
- file size OK
- script phppj3C9h renamed as phppj3C9h.txt!
- file mime OK : text/plain
- new file name body : mini_1
- file name safe format
- destination variables
file_dst_path : /var/www/*************/web/images/produits/
file_dst_name_body : mini_1
file_dst_name_ext : txt
- image operation, keep extension
- no auto_rename if same filename exists
- destination file details
file_dst_name : mini_1.txt
file_dst_pathname : /var/www/*************/web/images/produits/mini_1.txt
- no overwrite checking
- image resizing or conversion wanted
- source image is JPEG
- setting destination file type to txt
- resizing...
use plain sizes
resized image object created
image_src_x y : 1000 x 804
image_dst_x y : 1 x 1
- converting...
fills in transparency with default color
- saving image...
JPEG image created
image objects destroyed
- process OK