Reply to Resize does not function (with Flash uploader)

Resize does not function (with Flash uploader) new!
by Roderick, 16 years, 3 months ago
Hi,

Ever since i'm using v25, because v24 does not work with Flash Uploading (mime-issue), the images i upload arent resizing: here's my code:

if ($foo->uploaded) {
  $foo->image_resize       = true;
  $foo->image_ratio_crop   = true;
  $foo->image_y            = 680;
  $foo->image_x            = 680;
  $foo->jpeg_quality 	   = 80;
  $foo->process($location);
  
  $foo->image_resize       = true;
  $foo->image_ratio_crop   = true;
  $foo->image_x            = 156;
  $foo->image_y        	   = 117;
  $foo->jpeg_quality	   = 80;
  $foo->file_name_body_add = 'tn_';	
  $foo->process($location);

  if ($foo->processed) {
    $foo->clean();
    // etc...
The file gets uploaded to the correct directory, but its not getting resized.

Here's my log:
system information
- GD version : 2.0.28
- 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 : SIFE Foto.jpg
    file_src_name_body : SIFE Foto
    file_src_name_ext : jpg
    file_src_pathname : D:\Program Files\XAMPP\xampp\tmp\php273.tmp
    file_src_mime : application/octet-stream <--- Shouldnt this be image/jpg or something?
    file_src_size : 1002721 (max= 16777216)
    file_src_error : 0
process file to ../fotos/2008\
- file size OK
- file mime OK : application/octet-stream <--- Shouldnt this be image/jpg or something?
- file name body add after : 1201707953
- file name safe format
- destination variables
    file_dst_path : ../fotos/2008\
    file_dst_name_body : SIFE_Foto1201707953
    file_dst_name_ext : jpg
- no image operation, keep extension
- checking for auto_rename
- destination file details
    file_dst_name : SIFE_Foto1201707953.jpg
    file_dst_pathname : ../fotos/2008\SIFE_Foto1201707953.jpg
- SIFE_Foto1201707953.jpg doesn't exist already
- no image processing wanted <--- Why? I do want this :)
- process OK
process file to ../fotos/2008\
- file size OK
- file mime OK : application/octet-stream
- file name body add : tn_
- file name body add after : 1201707953
- file name safe format
- destination variables
    file_dst_path : ../fotos/2008\
    file_dst_name_body : tn_SIFE_Foto1201707953
    file_dst_name_ext : jpg
- no image operation, keep extension
- checking for auto_rename
- destination file details
    file_dst_name : tn_SIFE_Foto1201707953.jpg
    file_dst_pathname : ../fotos/2008\tn_SIFE_Foto1201707953.jpg
- tn_SIFE_Foto1201707953.jpg doesn't exist already
- no image processing wanted
- process OK
cleanup
- delete temp file D:\Program Files\XAMPP\xampp\tmp\php273.tmp

It says: no image processing wanted. Why?Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important