我知道ImageMagick可以與codeigniter一起使用。但我應該把imageMagick的dll放在codeigniter文件夾中?我目前在Mac上使用codeiginiter。我搜索了一些imageMagick安裝在bin文件夾中的答案。如果我把網站直播,我仍然可以使用ImageMagick?Codeigniter與ImageMagick
我的意圖是使用ImageMagick獲取一些圖像並進行覆蓋以生成一個圖像並保存。然而,當我嘗試用下面的代碼加載我得到一個錯誤
$config['image_library'] = 'ImageMagick';
echo site_url();
$config['source_image'] = site_url().'marcella-resources/front/img/M24CPP_x200/SBase1.jpg';
$config['new_image'] = site_url().'marcella-resources/front/test/SBase1_copy.jpg';
$config['maintain_ratio'] = TRUE;
$config['width'] = 75;
$config['height'] = 50;
$this->load->library('image_lib', $config);
if (!$this->image_lib->resize())
{
echo $this->image_lib->display_errors();
$this->image_lib->clear();
}
的錯誤是
The path to the image is not correct.
The path to your image library is not correct. Please set the correct path in your image preferences.
也許這個人可以幫助你http://stackoverflow.com/questions/5461783/resizing-an-image-on-the-fly-using-codeigniter – 2013-03-09 09:45:29