I am a new Gallery user, and would like to install the graphicsmagick toolkit. I am using Gallery 3 and my setup is: Windows Server 2003, Apache 2.2.11, PHP 5.3.0, and MySQL 5.1.36. Gallery does not autodetect that I have now installed graphicsmagick, and any attempts of mine at setting the path from the advanced settings have failed. Any help would be greatly appreciated.
Posts: 204
You mean imagemagick?
http://imagemagick.sourceforge.net/http/www/windows.html
Posts: 8
I suppose I could try imagemagick now that I am having problems with graphicsmagick, but I was intending to use graphicsmagick. Gallery just does not recognise that it is now installed on the server.
http://www.graphicsmagick.org/
The problem is not installing the software, but getting Gallery to recognise that I have installed graphicsmagick.
Posts: 204
From what I know, ImageMagick is more supported. Go with that.
Posts: 8
Imagemagick is not autodetected either. Is there a certain directory I should install it to?
Posts: 18
I tried to "hack" the graphics autodetect module (substitute the path to ImageMagick instead of "which convert"), but it's partial success: ImageMagic is detected, but it doesn't work. The log file contains a list of errors, like "which" is not command or function (it's not precisely - just for understanding). It means, that using of ImageMagick is available just for *NIX system
Posts: 8
Ah ok I was afraid of that. I wish that I had the opportunity to use a *nix for this server, but my superiors insist on doze. Thanks guys. I'll just stick to GD and hope for the best.
Posts: 16504
Try getting the gnuWin32 version of which installed and working for Windows.
http://gnuwin32.sourceforge.net/
http://gnuwin32.sourceforge.net/packages/which.htm
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 8
I apologize for my gap in response but over the holidays I have been away from the server on which I have my development and I do not have access outside the network. I installed GNU Which, but there is no immediate change. Does Gallery require that you have the PECL extensions installed to use either of the libraries? I was under the assumption that it did but perhaps I have been terribly mistaken. I was checking this out, but I seem to be having a hard time with PEAR, so I can't install the gmagick extension. Thanks for help. Sorry if I am making foolish mistakes I am new at managing a php/mysql server.
Posts: 16504
Gallery doesn't use PHP modules/extensions/libraries for ImageMagick or GraphicsMagick. Just GD.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 8
OK so I have GNU Which installed but there is no change. Is their anything I need to do besides installing it?
Posts: 16504
I don't know, I don't run a webserver on 'doze.
But what happens when you type which convert at the command line?
Did you add the path to the ImageMagick binaries to the PATH system variable?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 8
Well after doing some investigating, I found out I didn't have permission to change the PATH on the server directly, but I was able to copy the GNUwhich installation into one of those folders that was already in the PATH. Thanks so much for the help. Graphicsmagick and Imagemagick are now both recognized and working.
I do most of my testing at my home in linux as well, so this experience was quite frustrating, but thank you again for your help.
Posts: 8
Well all appeared to be working well. GraphicsMagick is working . . . sort of. As far as resizing and applying watermarks it seems to work fine, but it is not changing the quality parameter on the JPEGs it outputs. GD works fine, and ImageMagick is recognized as installed, but new pictures uploaded fail to be displayed when it is in use. It does run faster with graphicsmagick, but with JPEGs that are in the 90s on their quality parameter, it makes the site unusable. GD correctly saves the images as 75 quality like I have set in the advanced options. Any help is again greatly appreciated.
EDIT: Graphicsmagick is occasionally getting it right, but not all the time. It seems sometimes the upload goes flawlessly and sometimes the images are left in huge files. I have no clue what could be making it go back and forth like this. Why would this problem be sporadic?