No image processing wanted

See all posts Reply

No image processing wanted new!
by Gauldo, 13 years, 6 months ago
Hi ! Thanks for this great lib.

I'm only facing a ploblem with resize/crop an image. I'm using the lib as a CakePHP component. It works great since I'm not processing images. Here is how I use it :
$this->Upload->file_new_name_body = 'min_'.$filename;
$this->Upload->image_x = 250;
$this->Upload->image_y = 150;
$this->Upload->image_ratio_crop = true;
$this->Upload->image_resize = true;
$this->Upload->allowed =  array('image/*');
$this->Upload->process($dest);

And here is my log :

system information
- class version : 0.28
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : fr_FR
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/png; charset=binary by Fileinfo PECL extension
source variables
- You can use all these before calling process()
file_src_name : Capture d’écran 2011-05-08 à 00.05.48.png
file_src_name_body : Capture d’écran 2011-05-08 à 00.05.48
file_src_name_ext : png
file_src_pathname : /Applications/MAMP/tmp/php/phpHpp5U9
file_src_mime : image/png; charset=binary
file_src_size : 1733631 (max= 33554432)
file_src_error : 0
process file to /Applications/MAMP/htdocs/dev/vachercherlaballe.com/app/webroot/medias/selections/originals/
- file size OK
- file mime OK : image/png; charset=binary
- file name safe format
- destination variables
file_dst_path : /Applications/MAMP/htdocs/dev/vachercherlaballe.com/app/webroot/medias/selections/originals/
file_dst_name_body : Capture_dcran_2011_05_08__000548
file_dst_name_ext : png
- no image operation, keep extension
- checking for auto_rename
auto_rename to Capture_dcran_2011_05_08__000548_2.png
- destination file details
file_dst_name : Capture_dcran_2011_05_08__000548_2.png
file_dst_pathname : /Applications/MAMP/htdocs/dev/vachercherlaballe.com/app/webroot/medias/selections/originals/Capture_dcran_2011_05_08__000548_2.png
- Capture_dcran_2011_05_08__000548_2.png doesn't exist already
- no image processing wanted
- process OK
process file to /Applications/MAMP/htdocs/dev/vachercherlaballe.com/app/webroot/medias/selections/
- file size OK
- file mime OK : image/png; charset=binary
- new file name body : Il-peut-tourner-sa-tete-a-180
- file name safe format
- destination variables
file_dst_path : /Applications/MAMP/htdocs/dev/vachercherlaballe.com/app/webroot/medias/selections/
file_dst_name_body : Il_peut_tourner_sa_tete_a_180
file_dst_name_ext : png
- no image operation, keep extension
- checking for auto_rename
auto_rename to Il_peut_tourner_sa_tete_a_180_2.png
- destination file details
file_dst_name : Il_peut_tourner_sa_tete_a_180_2.png
file_dst_pathname : /Applications/MAMP/htdocs/dev/vachercherlaballe.com/app/webroot/medias/selections/Il_peut_tourner_sa_tete_a_180_2.png
- Il_peut_tourner_sa_tete_a_180_2.png doesn't exist already
- no image processing wanted
- process OK


Thanks for your help !Reply
Re: No image processing wanted new!
by Gauldo, 13 years, 6 months ago
Maybe I should be more explicit, the image got saved at the original size. Renaming and saving works great. Just need to resize/crop as expected. Cheers.Reply
Re: No image processing wanted new!
by colin, 13 years, 6 months ago
Please use the latest version of the class, which fixes some MIME detection routines.Reply