Do I need to define the path of ImageMagick? Do I need to define the path of ImageMagick?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Do I need to define the path of ImageMagick?

Started by Sofistikated, September 18, 2005, 02:20:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sofistikated

Hi...

I'm trying to run Coppermine with GIF support. Everything works fine when I'm using GD, but when I change the config to ImageMagick, the uploaded files don't work. The server obviously supports ImageMagick because the admin told me it does and gave me the convert path, which I defined. Yet, when I try to upload with the config set to ImageMagick my only result is a broken Image and this message: "The previous file could not be placed."

Any ideas? Thanks!

Sofistikated

Ok, and I just realized that I should have defined it in the setup. Is there any way to change the path now? I'm assuming the path was already set correctly anyway.

Tranz


Sofistikated

I don't see anything in config, except for the convert utility path.

kegobeer

Path to ImageMagick 'convert' utility (example /usr/bin/X11/)

convert is the binary that ImageMagick uses to do resizes.  That's all Coppermine needs to use ImageMagick.  If you are unable to upload images, resize images, etc, after you select ImageMagick as the method for resizing, and you are sure the path you supplied is correct, then permissions are not set correctly for the ImageMagick binaries.  That's something you need to ask your host about.

You can use GD2 (2.0.28+), Coppermine, and my GIF mod (look in the mods board) if you can't get ImageMagick working.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Sofistikated

Turns out, I never defined the path to ImageMagick itself in the original setup. Do you know if there's any way to define that path now that coppermine is already installed? (not the convert path in config). If not, I'll just use that mod because I don't really want to reconfigure/upload 900+ files lol.

kegobeer

The only place you enter a path to ImageMagick is in the config settings.  That's it.  The only place.  Nowhere else.  If you want to use ImageMagick, you must enter that path, and also select ImageMagick as the method to resize your images.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Sofistikated

There is no where in config.php that I can define the path to ImageMagick itself. The only thing I can define is the path of the convert utility. I have already done this. This isn't what I'm looking for. I'm talking about the path to ImageMagick that you specify when you first run install.php. Is there any way to change it after coppermine has already been installed by editing a php file?

kegobeer

Please, just trust me on this, ok?  It's the same thing.  Just do as I've told you and everything will be ok.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Sofistikated

lol.... Well, I already tried what you told me to do, that's the thing. My server admin specified two different paths:

"Hello Nick,

We do support ImageMagick, the path is:

/usr/local/lib/ImageMagick/

The path for ImageMagick Convert utility is:

/usr/local/bin/convert

Have a nice day"

kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Sofistikated

Doesn't work.  :(

I emailed admin to ask if I even have permission to use it. I tried installing another instance of coppermine in another directory and defned the path in install.php and it told me that either the path doesn't exist or I don't have permssion to access it.

kegobeer

You should just wait until you hear back from your host.  If they can't get it sorted out, then you'll have to apply my GIF mod and use GD2 (as long as your GD version is 2.0.28 or later).
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Sofistikated

Ahh... Problem resolved! My host had to turn off safe mode, I guess. Also, you were right about setting the path to /usr/local/bin. Thanks for all of the help!  :)