ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

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

June 23, 2011 12:43pm

Subscribe [2]
  • #1 / Jun 23, 2011 12:43pm

    warpspasm

    13 posts

    Hello Everyone,

    I have a fully functional version of Codeigniter and XAMPP on my Mac. I installed ImageMagick from http://www.imagemagick.org/script/binary-releases.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

  • #2 / Jun 23, 2011 4:09pm

    toopay

    1583 posts

    You should provides a wrapper to the ImageMagick library like these one first, didnt you?

  • #3 / Jun 23, 2011 7:32pm

    warpspasm

    13 posts

    Hi toopay,

    Thanks for the quick answer. No, I didn’t setup a wrapper - didn’t know that I was supposed to set one up.

    Does anyone know how to correctly configure the wrapper?

    Thanks!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases