No Image resize on localhost

See all posts Reply

No Image resize on localhost new!
by Alex, 15 years, 9 months ago
I use the following code:

$upload = new Upload($file);
$upload->image_resize = true;
$upload->image_ratio = true;
$upload->image_x = 150;     	  	
$upload->image_convert  = 'jpg';
$upload->jpeg_quality = 100;
$upload->file_overwrite = true;
$upload->auto_create_dir = true;
$upload->file_auto_rename = false;
$upload->file_new_name_body = 'screen_thumb_'.$id;
$upload->process($dir);

The file gets uploaded but no resizing is done! Even more strange is when I display the log the following is shown:

system information
- 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
- source variables
file_src_name : ccg 4.jpg
file_src_name_body : ccg 4
file_src_name_ext : jpg
file_src_pathname : C:\xampp\tmp\php5FAF.tmp
file_src_mime : application/octet-stream
file_src_size : 3428460 (max= 33554432)
file_src_error : 0
process file to /xampp/htdocs/test/public/img/gallery/4/\
- file size OK
- file mime OK : application/octet-stream
- new file name ext : jpg
- new file name body : screen_thumb_169
- file name safe format
- destination variables
file_dst_path : /xampp/htdocs/test/public/img/gallery/4/\
file_dst_name_body : screen_thumb_169
file_dst_name_ext : jpg
- no image operation, keep extension
- no auto_rename if same filename exists
- destination file details
file_dst_name : screen_thumb_169.jpg
file_dst_pathname : /xampp/htdocs/test/public/img/gallery/4/\screen_thumb_169.jpg
- no overwrite checking
- no image processing wanted
- process OK


See the "- no image processing wanted" line. I don't get it.

I use XAMPP on localhostReply
Re: No Image resize on localhost new!
by Alex, 15 years, 9 months ago
Never mind found the 0,26RC version and this works. I was uploading with flashReply