Hello Reader's!,If you want to Resize Image While Uploading in directory using cakephp ,then this blog going to help you to do this easily.
You need to Download Qimage plugin for resize your image (Download file attached Below)
after downloading Qimage plugin put it into your directory (App/Controller/Component)
and use this in your controller
public $components = array('Qimage');
//Set image size for resize
$height=70;
$width=70;
//now use Qimage function for resize image
$this->Qimage->resize(array('height' => $height, 'width' => $width, 'file' => WWW_ROOT. '/img/full/'.$your_file_name.'', 'output' => WWW_ROOT. '/img/thumb/'));
0 Comment(s)