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.28 - 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 returned as image/gif MIME type detected as image/gif by UNIX file() command source variables - You can use all these before calling process() file_src_name : image008.gif file_src_name_body : image008 file_src_name_ext : gif file_src_pathname : /tmp/phpZeQM5b file_src_mime : image/gif file_src_size : 45687 (max= 31457280) file_src_error : 0 process file to test/ - file size OK - file mime (not checked) : image/gif - new file name ext : jpg - file name safe format - destination variables file_dst_path : test/ file_dst_name_body : image008 file_dst_name_ext : jpg - no image operation, keep extension - checking for auto_rename - destination file details file_dst_name : image008.jpg file_dst_pathname : test/image008.jpg - image008.jpg doesn't exist already - no image processing wanted - process OK cleanup - delete temp file /tmp/phpZeQM5bReply
- GD version : GD not present - supported image types : none
Apparently, your server doesn't have GD installed. Without GD, there is no graphic capabilities.
The list of supported image types is empty, so the class cannot consider the file as an image that it can work on, and deactivate all image processing.Reply
Uploads and converting images to jpg's are working fine for me, but then the output says "no image processing wanted". Running on Linux (Cent OS)
Here is the processing code I use:
After reading other posts I set the following with no avail
Here is my log output:
system information
- class version : 0.28
- 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 returned as image/gif
MIME type detected as image/gif by UNIX file() command
source variables
- You can use all these before calling process()
file_src_name : image008.gif
file_src_name_body : image008
file_src_name_ext : gif
file_src_pathname : /tmp/phpZeQM5b
file_src_mime : image/gif
file_src_size : 45687 (max= 31457280)
file_src_error : 0
process file to test/
- file size OK
- file mime (not checked) : image/gif
- new file name ext : jpg
- file name safe format
- destination variables
file_dst_path : test/
file_dst_name_body : image008
file_dst_name_ext : jpg
- no image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : image008.jpg
file_dst_pathname : test/image008.jpg
- image008.jpg doesn't exist already
- no image processing wanted
- process OK
cleanup
- delete temp file /tmp/phpZeQM5b
- supported image types : none
Apparently, your server doesn't have GD installed. Without GD, there is no graphic capabilities.
The list of supported image types is empty, so the class cannot consider the file as an image that it can work on, and deactivate all image processing.
Thanks again
Alan