G3: How to install ImageMagick

martijntijn

Joined: 2005-12-02
Posts: 12
Posted: Thu, 2009-02-26 23:56

I`ve installed the ImageMagick Windows Binary Release on my XAMPP web server from http://www.imagemagick.org/www/binary-releases.html#windows.

But my Graphic Settings on my Admin section doesn`t recognizes the ImageMagick library automatically. My webserver does recognize ImageMagick.

How do i configure Gallery 3 to use the ImageMagick library?

AttachmentSize
G3+GD_installed.png71.29 KB
XAMPP ImageMagick installed.png65.09 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2009-02-27 00:35

You or your host will have to install ImageMagick on the server. Once installed G3 should detect where it is.

Quote:
Scope #2, Supported Configurations - Gallery 3 is supported on Linux / Unix servers, running a MySQL 5 and an Apache 2.2 web server with PHP 5.2. Emphasis on supported, not necessarily required. It may well work with MySQL 4.1 on MS Windows as well. But the Gallery team is going to focus its energy on making the best possible product on the supported configurations.

I don't know much about XAMPP so can't offer any advice if it fits the above or not.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2009-02-27 10:21
floridave wrote:
You or your host will have to install ImageMagick on the server. Once installed G3 should detect where it is.

Unfortunately I don't think it is as simple as that Dave. Since G2.3, your fellow devs have decided that simply installing IM and having it in the path is not enough to run IM and have not quite gotten around to fully documenting the implications and actions to take.

As you can see from his attached file, the OP clearly has IM installed but until he also adds the path to IM to his openbasedir settings, Gallery from 2.3 onwards will not run with it.

The OP can either ask his host to do this with the likely answer being NO, or do it himself if he has root access to his server and is happy to mess with his conf files. He may be lucky and find that all he needs to do is to change his php.ini file.

I was able to get g2.3 to work with IM on my system by changing my openbasdir settings. If the OP is on plesk, I can advise how to do it. I ultimately decided to go back to 2.2.6.

--
Gallery version = 2.2.6
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-03-03 04:16

G3 currently expects ImageMagick / GraphicsMagick to be in your path. We'll probably eventually make that configurable, but we're not there yet. In your case, you're running on Windows which is an unsupported configuration so you probably want to stick with G2.

 
lurp

Joined: 2010-03-28
Posts: 1
Posted: Sun, 2010-03-28 23:15

Install the gnuwin32/which program and gallery3 will find it.

 
wilhelmmm

Joined: 2010-06-02
Posts: 12
Posted: Wed, 2010-06-02 14:28

How do you use the whitch so that gallery3 will find it?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2010-06-02 16:45

wilhelmmm, what operating system? On any Linux distro it should be installed and ready to use.

Windows isn't supported, but you'd probably have to add it to the path environment variable to make the system find it or drop it in your system32 directory.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
sonnyk88

Joined: 2010-07-15
Posts: 1
Posted: Thu, 2010-07-15 17:45

i am using freenas 0.72. the $path=exec("which convert") or $path=exec("which gm") does not return the string to $path. So, i hardcode the $path with right paths for both convert and gm. G3 found them correctly. :)

 
hannaman

Joined: 2010-08-08
Posts: 3
Posted: Sun, 2010-08-08 20:00
Quote:
i am using freenas 0.72. the $path=exec("which convert") or $path=exec("which gm") does not return the string to $path. So, i hardcode the $path with right paths for both convert and gm. G3 found them correctly.

How exactly did you get this to work? I am also running G3 of FreeNAS 0.72 and have the IM binaries in my path. They execute just fine from command line, but just having the IM binaries in the path is apparently not good enough for G3. What do you mean you hardcoded the $path? Where?
Thanks

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2010-08-08 20:26

Remember that the webserver runs as a different user and can have a different path. Check your phpinfo to see what path the webserver is using:
FAQ: How do I create a phpinfo page?
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git