Welcome Guest, Not a member yet? Register   Sign In
ImageMagick - cannto resize - path to image library problem?
#1

[eluser]Alistair Jackman[/eluser]
Hi.

I'm attempting to use ImageMagick to perform a resize as follows:

Code:
$config['image_library'] = 'ImageMagick';
$config['library_path'] = '/usr/bin';
$config['source_image'] = 'assets/P1000318.JPG';
$config['new_image'] = 'assets/P1000318_med.JPG';
$config['create_thumb'] = FALSE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 800;
$config['height'] = 600;
        
$this->load->library('image_lib');
$this->image_lib->initialize($config);    
$this->image_lib->resize();

The same resize works fine if I choose GD, but I need to use ImageMagick in order to cope with very large images.

Echoing from image_lib.php I can see the command being attempted is:

Quote:/usr/local/bin/convert -quality 90 -resize 800x451 "/home/verydesi/public_html/2009/admin/assets/P1000318.JPG" "assets/P1000318_med.JPG" 2>&1

But I just get the error:

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

I have checked with my hosting that ImageMagick is installed, this is their response:

Quote:Imagemagick is installed in the server hosting your domain.

===================================================
Version: ImageMagick 6.4.8 2009-04-02 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright © 1999-2009 ImageMagick Studio LLC
====================================================

The path would be /usr/bin/mogrify .

I've also done the following to see if 'convert' is where I expect it to be and I can see 'convert' no problem:

Code:
$map = directory_map('/usr/bin');
print_r($map);

Can you suggest a possible solution? I'm baffled!

Regards
AJ


Messages In This Thread
ImageMagick - cannto resize - path to image library problem? - by El Forum - 04-03-2009, 04:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB