forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: Sofistikated on September 18, 2005, 02:20:41 am

Title: Do I need to define the path of ImageMagick?
Post by: Sofistikated on September 18, 2005, 02:20:41 am
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!
Title: Re: Do I need to define the path of ImageMagick?
Post by: Sofistikated on September 18, 2005, 02:31:14 am
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.
Title: Re: Do I need to define the path of ImageMagick?
Post by: Tranz on September 18, 2005, 02:31:57 am
You can change settings in Config
Title: Re: Do I need to define the path of ImageMagick?
Post by: Sofistikated on September 18, 2005, 03:10:03 am
I don't see anything in config, except for the convert utility path.
Title: Re: Do I need to define the path of ImageMagick?
Post by: kegobeer on September 18, 2005, 03:38:33 am
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.
Title: Re: Do I need to define the path of ImageMagick?
Post by: Sofistikated on September 18, 2005, 04:19:29 am
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.
Title: Re: Do I need to define the path of ImageMagick?
Post by: kegobeer on September 18, 2005, 04:40:42 am
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.
Title: Re: Do I need to define the path of ImageMagick?
Post by: Sofistikated on September 18, 2005, 05:08:40 am
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?
Title: Re: Do I need to define the path of ImageMagick?
Post by: kegobeer on September 18, 2005, 05:10:40 am
Please, just trust me on this, ok?  It's the same thing.  Just do as I've told you and everything will be ok.
Title: Re: Do I need to define the path of ImageMagick?
Post by: Sofistikated on September 18, 2005, 05:21:24 am
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"
Title: Re: Do I need to define the path of ImageMagick?
Post by: kegobeer on September 18, 2005, 05:23:16 am
Use /usr/local/bin/
Title: Re: Do I need to define the path of ImageMagick?
Post by: Sofistikated on September 18, 2005, 05:30:29 am
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.
Title: Re: Do I need to define the path of ImageMagick?
Post by: kegobeer on September 18, 2005, 05:41:51 am
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).
Title: Re: Do I need to define the path of ImageMagick?
Post by: Sofistikated on September 18, 2005, 10:35:15 pm
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!  :)