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.
I have problem with resize or rotate etc.. Upload work fine, rename also.
My log: system information - class version : 0.29 - operating system : Linux - PHP version : 5.2.9 - GD version : GD not present - supported image types : none - open_basedir : no restriction - language : en_GB source is an uploaded file - upload OK - file name OK determining MIME type - Checking MIME type with Fileinfo PECL extension Fileinfo PECL extension not available - Checking MIME type with UNIX file() command MIME type detected as image/jpeg by UNIX file() command - MIME validated as image/jpeg source variables - You can use all these before calling process() file_src_name : brak.jpg file_src_name_body : brak file_src_name_ext : jpg file_src_pathname : /tmp/phpcmSFzf file_src_mime : image/jpeg file_src_size : 34017 (max= 2097152) file_src_error : 0 process file to /var/www/html/test/class_upload/test/ - file size OK - file mime OK : image/jpeg - new file name body : image_res - file name safe format - destination variables file_dst_path : /var/www/html/test/class_upload/test/ file_dst_name_body : image_res file_dst_name_ext : jpg - no image operation, keep extension - checking for auto_rename - destination file details file_dst_name : image_res.jpg file_dst_pathname : /var/www/html/test/class_upload/test/image_res.jpg - image_res.jpg doesn't exist already - no image processing wanted - process OK cleanup - delete temp file /tmp/phpcmSFzfReply
I have problem with resize or rotate etc.. Upload work fine, rename also.
My log:
system information
- class version : 0.29
- operating system : Linux
- PHP version : 5.2.9
- GD version : GD not present
- supported image types : none
- open_basedir : no restriction
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
Fileinfo PECL extension not available
- Checking MIME type with UNIX file() command
MIME type detected as image/jpeg by UNIX file() command
- MIME validated as image/jpeg
source variables
- You can use all these before calling process()
file_src_name : brak.jpg
file_src_name_body : brak
file_src_name_ext : jpg
file_src_pathname : /tmp/phpcmSFzf
file_src_mime : image/jpeg
file_src_size : 34017 (max= 2097152)
file_src_error : 0
process file to /var/www/html/test/class_upload/test/
- file size OK
- file mime OK : image/jpeg
- new file name body : image_res
- file name safe format
- destination variables
file_dst_path : /var/www/html/test/class_upload/test/
file_dst_name_body : image_res
file_dst_name_ext : jpg
- no image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : image_res.jpg
file_dst_pathname : /var/www/html/test/class_upload/test/image_res.jpg
- image_res.jpg doesn't exist already
- no image processing wanted
- process OK
cleanup
- delete temp file /tmp/phpcmSFzf