public function imageSave($params)
    {
        if (is_array($params)) {
            imagejpeg($params['image'], $params['target'], 100);
            imagedestroy($params['image']);

            return true;
        } else {
            return false;
        }
    }
public function imageSave($params)
    {
        if (is_array($params)) {
            imagejpeg($params['image'], $params['target'], 100);
            imagedestroy($params['image']);

            return true;
        } else {
            return false;
        }
    }
public function imageSave ( $ params ) { if ( is_array ( $ params ) ) { imagejpeg ( $ params [ 'image' ] , $ params [ 'target' ] , 100 ) ; imagedestroy ( $ params [ 'image' ] ) ; return true ; } else { return false ; } }
Save the Image.

@param   $params (array)
'image' => Source valid image file
'target' => target + new name of file

@since 1.0.0

@return image
Save the Image .