XAMPP, Codeigniter, ImageMagick... and Mac OS X 10.6.6

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

XAMPP, Codeigniter, ImageMagick... and Mac OS X 10.6.6

Postby warpspasm » 23. June 2011 17:10

Hello Everyone,

I have a fully functional version of Codeigniter and XAMPP on my Mac. I installed ImageMagick from http://www.imagemagick.org/script/binar ... php#macosx to the directory /Applications/XAMPP/xamppfiles/imagic/ImageMagick-6.6.9

Using the command line I set the following environment variables:

export MAGICK_HOME="/Applications/XAMPP/xamppfiles/imagic/ImageMagick-6.6.9/"
export PATH="$MAGICK_HOME/bin:$PATH"
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/"

Then I tested the installation with:

$magick> convert logo: logo.gif
$magick> identify logo.gif

And everything worked fine!

But I just can't get it to work from Codeigniter's Image Manipulation Class $this->load->library('image_lib');

I have set the following in the config array:

$config = array(
'image_library' => 'imagemagick',
'library_path' => '/Applications/XAMPP/xamppfiles/imagic/ImageMagick-6.6.9/bin',
...etc

But I always get the same error when trying to run the function:

Image processing failed. Please verify that your server supports the chosen protocol and that the path to your image library is correct.

Does anyone have any ideas where I can start looking to find the reason why it is not working, I was suspecting maybe something needs to be in php.ini, but I am not sure!

Thanks
warpspasm
 
Posts: 2
Joined: 23. June 2011 17:03

Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 6 guests