ImageMagick path acting up. ImageMagick path acting up.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

ImageMagick path acting up.

Started by Akaroo, January 18, 2005, 03:42:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Akaroo

Alright...

Asked my provider where they installed imagemagick/GD to, they said /program files/imagemagick.
> Doesn't work, can't have spaces as I found out from another post

Downloaded the binaries and installed them to the root web directory:  c:\users\sitedata\akaroo\web\
> Final path is File: c:\users\sitedata\akaroo\web\imagemagick\  but I get this error from debug mode:


Error executing ImageMagick - Return value: -1


Cmd line :
c:\users\sitedata\akaroo\web\imagemagick\convert -quality 80 -antialias -geometry 100x75 "modules\coppermine\albums\userpics\10002\jubaca_sheep~1.jpg" "modules\coppermine\albums\userpics\10002\thumb_jubaca_sheep~1.jpg"


Now, the only thing that looks wrong to me is that it's not 'convert.exe' but maybe that's not needed. That path is exactly where I uploaded the files to.

So basically, I installed ImageMagick to c:\users\sitedata\akaroo\web\imagemagick\ and told coppermine to find it at c:\users\sitedata\akaroo\web\imagemagick\ and it refuses to work.  Any ideas?


kegobeer

You can't just download and extract.  You have to run the installer, which normally your host has to do.  You should ask your host to reinstall ImageMagick to a different directory (like c:/imagemagick).
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

Akaroo

They're not fun to get a hold of...   if their actual hosting wasn't so cheap and reliable I wouldn't use them, simply because their customer service is elusive.

Like I said, they have it installed, but to an inaccesible directory (as it has a space)

But also, it seems that all coppermine needs is to know where convert.exe is.  I'm under the impression that I could just upload that single file.  People have also been compiling their own versions, which means it wasn't "officially" installed either.

I may be wrong, but it seems coppermine just isn't seeing convert.exe


And thank you for the quick reply.

Akaroo

Oh, forgot to add...

This is the same error that I got when i tired to use: c:\progra~1\imagemagick\ and c:\program files\imagemagick\ which was the official install directory. Which means that error isn't reporting that it's a bad install, as I wouldn't gotten a different error for the /program files/ directory.

Turns out that im getting the same one now, leading me to beleive that it knows im specifying a directory, but it's not even trying to execute the program. It's bugging before it gets to that it seems.

kegobeer

You cannot use ImageMagick unless it is properly installed.  You can't just upload one of the binary files.

Coppermine knows you are running on a Windows box and it automatically uses convert.exe instead of convert.
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

Akaroo

Well, I'm hoping that all i need to do is, like you said, have them install it to c:\imagemagick\ or something, but I can't help but notice that I get the same error for running it from an legitly installed c:\program files\.. path AND the jerry-rigged .../web/imagemagick/

If it was a matter of not installing it correctly, wouldn't I have gotten an error about having a space in the path on the first path i tried? I got the same one

Akaroo

Alternatively, I noticed my provider is using php 4.3.1 which is bundled with GD2.0 as php.net states, however, I do not have access to it. I have read that it is merely a small change in php.ini.  I might just try to do that if I cannot get imagemagick to work.

kegobeer

If your host is using PHP 4.3.1, you need to tell them to upgrade to 4.3.10 and upgrade their Zend optimizer to 2.5.7.  There are security vulnerabilities in anything less than 4.3.10.

This is an issue that they should have taken care of a long time ago.  It may be time for you to look for a new provider.
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