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'm using the class on 2 servers on one of them the resize doesn't work, and the script only copy the image to a new one. Here is my log:
system information - GD version : 2.0.34 - supported image types : png jpg gif bmp - open_basedir : no restriction - language : he source is a local file Graphics/System/CropTmp/1339313990.jpg - local file name OK determining MIME type - Checking MIME type with Fileinfo PECL extension MAGIC path defaults to /usr/share/file/magic MIME type detected as image/jpeg; charset=binary by Fileinfo PECL extension source variables - You can use all these before calling process() file_src_name : 1339313990.jpg file_src_name_body : 1339313990 file_src_name_ext : jpg file_src_pathname : Graphics/System/CropTmp/1339313990.jpg file_src_mime : image/jpeg; charset=binary file_src_size : 2028775 (max= 26214400) file_src_error : 0 process file to Graphics/System/CropTmp/ - file size OK - file mime OK : image/jpeg; charset=binary - new file name ext : jpg - new file name body : new - file name safe format - destination variables file_dst_path : Graphics/System/CropTmp/ file_dst_name_body : new file_dst_name_ext : jpg - no image operation, keep extension - no auto_rename if same filename exists - destination file details file_dst_name : new.jpg file_dst_pathname : Graphics/System/CropTmp/new.jpg - no overwrite checking - no image processing wanted - process OK
I'm using the class on 2 servers on one of them the resize doesn't work, and the script only copy the image to a new one. Here is my log:
system information
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : he
source is a local file Graphics/System/CropTmp/1339313990.jpg
- local file name OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
MAGIC path defaults to /usr/share/file/magic
MIME type detected as image/jpeg; charset=binary by Fileinfo PECL extension
source variables
- You can use all these before calling process()
file_src_name : 1339313990.jpg
file_src_name_body : 1339313990
file_src_name_ext : jpg
file_src_pathname : Graphics/System/CropTmp/1339313990.jpg
file_src_mime : image/jpeg; charset=binary
file_src_size : 2028775 (max= 26214400)
file_src_error : 0
process file to Graphics/System/CropTmp/
- file size OK
- file mime OK : image/jpeg; charset=binary
- new file name ext : jpg
- new file name body : new
- file name safe format
- destination variables
file_dst_path : Graphics/System/CropTmp/
file_dst_name_body : new
file_dst_name_ext : jpg
- no image operation, keep extension
- no auto_rename if same filename exists
- destination file details
file_dst_name : new.jpg
file_dst_pathname : Graphics/System/CropTmp/new.jpg
- no overwrite checking
- no image processing wanted
- process OK
Please advise
Thanks
Guy