I want to use imageMagick for image processing. Now I have installed ImageMagick ImageMagick-6.8.4-10-Q16-x64-dll.exe
but still I face the following error:
Image processing failed. Please verify that your server supports the chosen protocol and that the path to your image library is correct.
My code is -
$config = array();
$config['image_library'] = 'ImageMagick';
$config['source_image'] = $file;
$config['new_image'] = $file;
$config['library_path'] = '/usr/local/bin';
$config['create_thumb'] = FALSE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 50;
$config['height'] = 50;
$this->image_lib->initialize($config);
if ( !$this->image_lib->resize())
{
echo "resize -".$this->image_lib->display_errors();
}
$this->image_lib->clear();