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.
hi all im currently having trouble with the image resizing, im running it locally on my macbook pro, snow leapord im using the .28 version of the class, my code looks like the following
system information - class version : 0.28 - GD version : 2.0.34 - supported image types : png jpg gif bmp - 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 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 : Desert Landscape.jpg file_src_name_body : Desert Landscape file_src_name_ext : jpg file_src_pathname : /private/var/tmp/phpPGiCGH file_src_mime : image/jpeg; charset=binary file_src_size : 228863 (max= 16777216) file_src_error : 0 process file to /Users/didgy58/Dropbox/Public/pandb/side_bars/thumbs/ - file size OK - file mime OK : image/jpeg; charset=binary - file name safe format - destination variables file_dst_path : /Users/didgy58/Dropbox/Public/pandb/side_bars/thumbs/ file_dst_name_body : Desert_Landscape file_dst_name_ext : jpg - no image operation, keep extension - checking for auto_rename auto_rename to Desert_Landscape_1.jpg - destination file details file_dst_name : Desert_Landscape_1.jpg file_dst_pathname : /Users/didgy58/Dropbox/Public/pandb/side_bars/thumbs/Desert_Landscape_1.jpg - Desert_Landscape_1.jpg doesn't exist already - no image processing wanted - process OK
im sure its finding the right file type as other people have pointed out, but im not sure whats wrong and why it isnt actually resizing the image as i would like it to do.
im currently having trouble with the image resizing, im running it locally on my macbook pro, snow leapord im using the .28 version of the class, my code looks like the following
the log for this looks like below
system information
- class version : 0.28
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- 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
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 : Desert Landscape.jpg
file_src_name_body : Desert Landscape
file_src_name_ext : jpg
file_src_pathname : /private/var/tmp/phpPGiCGH
file_src_mime : image/jpeg; charset=binary
file_src_size : 228863 (max= 16777216)
file_src_error : 0
process file to /Users/didgy58/Dropbox/Public/pandb/side_bars/thumbs/
- file size OK
- file mime OK : image/jpeg; charset=binary
- file name safe format
- destination variables
file_dst_path : /Users/didgy58/Dropbox/Public/pandb/side_bars/thumbs/
file_dst_name_body : Desert_Landscape
file_dst_name_ext : jpg
- no image operation, keep extension
- checking for auto_rename
auto_rename to Desert_Landscape_1.jpg
- destination file details
file_dst_name : Desert_Landscape_1.jpg
file_dst_pathname : /Users/didgy58/Dropbox/Public/pandb/side_bars/thumbs/Desert_Landscape_1.jpg
- Desert_Landscape_1.jpg doesn't exist already
- no image processing wanted
- process OK
im sure its finding the right file type as other people have pointed out, but im not sure whats wrong and why it isnt actually resizing the image as i would like it to do.
thanks again
dan