coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: astro on April 06, 2005, 10:38:58 PM

Title: Can't get imagemagick working on linux server
Post by: astro on April 06, 2005, 10:38:58 PM
At least I'm pretty positive the problem lies in ImageMagick
My gallery is at this location.. http://astroguy.org/bandpics
I followed this guide to set up imagemagick on my 1and1 server
http://s88567960.onlinehome.us/forums/index.php?showtopic=222

Then in the admin config, it asks to link the location to imagemagick, and I think this is where I'm screwing up
I tried different things:
/homepages/31/d117121540/htdocs/im/bin
moving the im folder to the bandpics folder and using
/im/bin
im/bin
http://astroguy.org/bandpics/im/bin

None of them seem to work.  After I upload a file, it'll say upload successful, then it'll take me to the page to fill in the details.
On the left hand side, where it's supposed to give a preview of the image, I get a redx.  I think this is the sign where imagemagick isn't doing its job.
Then after i fill it out and push ok, it gives an error message: the previous file could not be placed
Any ideas?
Title: Re: Can't get imagemagick working on linux server
Post by: kegobeer on April 06, 2005, 11:38:37 PM
I have no idea if you installed ImageMagick correctly.  Usually you ask your webhost to install it for you.

The path (not a url) to ImageMagick binaries requires a trailing slash.  /url/local/bin/
Title: Re: Can't get imagemagick working on linux server
Post by: astro on April 07, 2005, 03:50:11 AM
Judging from the link, you can't tell if I installed it correctly or not?
http://s88567960.onlinehome.us/forums/index.php?showtopic=222

Do you think it looks like an imagemagick problem?
Title: Re: Can't get imagemagick working on linux server
Post by: kegobeer on April 07, 2005, 04:18:35 AM
According to those directions, after installing ImageMagick the binaries are located at:

/kunden/homepages/yy/dxxxxxxxx/htdocs/im/bin/
Title: Re: Can't get imagemagick working on linux server
Post by: astro on April 07, 2005, 04:32:57 AM
Yes that would be synonymous to
/homepages/31/d117121540/htdocs/im/bin
for my server. 
I used that path and i get the redx for the preview thumbnails
Is the path that coppermine config is asking relative to where it's placed?
example, if i was going to provide a link for it in root, it would be /bandpics/im/bin
but if I was going to provide a link from bandpics it would be /im/bin
So which one do I use?
Title: Re: Can't get imagemagick working on linux server
Post by: kegobeer on April 07, 2005, 04:37:37 AM
That isn't a relative path, it's an absolute path.  That is what all scripts that do image manipulation require.  If you installed ImageMagick according to those directions, use the path the instructions told you to use.  I told you to add a trailing slash to the path.  Did you do that?
Title: Re: Can't get imagemagick working on linux server
Post by: astro on April 07, 2005, 05:05:46 AM
Yep I did that to begin with.
Well I just tried using the GD2.x option and it's working now, I thought I had to install that or I wouldn't have bothered with im :x
I guess imagemagick just doesn't want to work..
Title: Re: Can't get imagemagick working on linux server
Post by: kegobeer on April 07, 2005, 03:24:01 PM
You can always ask you host for assistance.  This appears to be an installation/configuration issue.  You could Google for a sample php script that does image manipulation with ImageMagick, upload that script to your site, and see if you can get the convert to work.  At least you'd know if ImageMagick works.
Title: Re: Can't get imagemagick working on linux server
Post by: OmegaGOD on April 07, 2005, 04:13:49 PM
As Kegobeer stated it should be installed in /usr/local/bin. That is the default location ImageMagick should install to. If you install it in any other directory, you will have to configure apache to run executable binaries from within the installation directory. I would try to install it to the public local bin, then try to execute it from the command line just to make sure your installation works.

Hope this help,

--OmegaGOD
Title: Re: Can't get imagemagick working on linux server
Post by: astro on April 07, 2005, 11:59:55 PM
Thanks for all your help!
I still have one problem though.
When I upload a picture that has a width of 3000, the resizing program stops working.  I get a redx, and the picture won't post
I set my max picture width to be 5000, so that shouldn't be an issue. 
Title: Re: Can't get imagemagick working on linux server
Post by: kegobeer on April 08, 2005, 12:10:59 AM
One question per thread.  Please search for resize problems, and make a new thread if you can't find any helpful posts.