[SOLVED] ImageMagick binaries "identity" error

battledingo
battledingo's picture

Joined: 2006-08-25
Posts: 39
Posted: Tue, 2013-08-06 08:47

Hi

I cant seem to install imagemagik. It comes up with the following error:

Quote:
ImageMagick binary test results
Binary Name Pass/Fail
identify
Failed
Error messages:

Binary output:

/home/sechen5/public_html/gallery/modules/imagemagick/data/test.gif GIF 50x50 50x50+0+0 8-bit sRGB 8c 232B 0.000u 0:00.000

convert Passed
composite Passed

I have chmod the bin directory to 777 and the gallery/modules/imagemagick directory to 777 with no luck.

the debug output reads:

Quote:
is_dir(/usr/bin/)
Loading plugin imagemagick
imagemagick plugin successfully instantiated
Check the version of the imagemagick plugin
The version of the imagemagick plugin is ok
getcwd()
chdir(/home/sechen5/public_html/gallery/g2data/tmp/)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
file_exists(/usr/bin/identify)
getParameter exec.beNice for core plugin
Executing: ( "/usr/bin/identify"
"/home/sechen5/public_html/gallery/modules/imagemagick/data/test.gif" )
2>"/home/sechen5/public_html/gallery/g2data/tmp/g2dbgs4nkbu"
getParameter exec.expectedStatus for core plugin
file_exists(/home/sechen5/public_html/gallery/g2data/tmp/g2dbgs4nkbu)
filesize(/home/sechen5/public_html/gallery/g2data/tmp/g2dbgs4nkbu)
unlink(/home/sechen5/public_html/gallery/g2data/tmp/g2dbgs4nkbu)
Regular Output:
/home/sechen5/public_html/gallery/modules/imagemagick/data/test.gif GIF
50x50 50x50+0+0 8-bit sRGB 8c 232B 0.000u 0:00.000
Error Output:
Status: 0 (expected 0)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
tempnam(/home/sechen5/public_html/gallery/g2data/tmp/, imgk_)
file_exists(/usr/bin/convert)
Executing: ( "/usr/bin/convert" "-size" "200x200" "-geometry" "200x200"
"/home/sechen5/public_html/gallery/modules/imagemagick/data/test.gif"
"gif:/home/sechen5/public_html/gallery/g2data/tmp/imgk_Qqj3Ux" )
2>"/home/sechen5/public_html/gallery/g2data/tmp/g2dbgAm4MEB"
file_exists(/home/sechen5/public_html/gallery/g2data/tmp/g2dbgAm4MEB)
filesize(/home/sechen5/public_html/gallery/g2data/tmp/g2dbgAm4MEB)
unlink(/home/sechen5/public_html/gallery/g2data/tmp/g2dbgAm4MEB)
Regular Output:
Error Output:
Status: 0 (expected 0)
unlink(/home/sechen5/public_html/gallery/g2data/tmp/imgk_Qqj3Ux)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
file_exists(/usr/bin/combine)
file_exists(/usr/bin/composite)
is_executable(/usr/bin/composite)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
tempnam(/home/sechen5/public_html/gallery/g2data/tmp/, imgk_)
Executing: ( "/usr/bin/composite" "-geometry" "+0+0"
"/home/sechen5/public_html/gallery/modules/imagemagick/data/test.jpg"
"/home/sechen5/public_html/gallery/modules/imagemagick/data/test.gif"
"gif:/home/sechen5/public_html/gallery/g2data/tmp/imgk_r6fFHF" )
2>"/home/sechen5/public_html/gallery/g2data/tmp/g2dbgtglyKJ"
file_exists(/home/sechen5/public_html/gallery/g2data/tmp/g2dbgtglyKJ)
filesize(/home/sechen5/public_html/gallery/g2data/tmp/g2dbgtglyKJ)
unlink(/home/sechen5/public_html/gallery/g2data/tmp/g2dbgtglyKJ)
Regular Output:
Error Output:
Status: 0 (expected 0)
unlink(/home/sechen5/public_html/gallery/g2data/tmp/imgk_r6fFHF)
chdir(/home/sechen5/public_html/gallery)

help me obi wan kenobi, you're my only hope.


Gallery URL = http://www.secheny.com/gallery/main.php
Gallery version = 2.3.2 core 1.3.0.2
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.4.16 cgi-fcgi
Webserver = Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqli 5.5.30, lock.system=flock
Toolkits = Thumbnail, LinkItemToolkit, ImageMagick
Acceleration = none/1800, none/1800
Operating system = Linux ld128.inmotionhosting.com 2.6.32-358.6.2.el6.bl1.0.1_1.x86_64 #1 SMP Thu May 30 20:45:26 MDT 2013 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0
Rows in GalleryAccessMap table = 1687
Rows in GalleryAccessSubscriberMap table = 14929
Rows in GalleryUser table = 225
Rows in GalleryItem table = 14925
Rows in GalleryAlbumItem table = 253
Rows in GalleryCacheMap table = 0

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-08-06 17:50

newer versions of IM have changed their output.
I supplied a fix for this in another thread.
I'm sure you searched before posting

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
battledingo
battledingo's picture

Joined: 2006-08-25
Posts: 39
Posted: Wed, 2013-08-07 07:34

Hi Suprsidr

thanks for the quick reply, I had searched the forums. The only post I had come across is http://galleryproject.org/node/111848

Where you replied

Quote:
/usr/local/bin/ needs to be 0755 at least

-s

Thats why I originally posted that I had chmod the directory to 777 with no luck.

Could you give me a hint to what I should be looking for... please :)

 
battledingo
battledingo's picture

Joined: 2006-08-25
Posts: 39
Posted: Wed, 2013-08-07 09:20

Hey Suprsidr

I solved the issue by installing Netpbm.

Gave up on imagemagick as I thought it might be a server side problem or something to do with my security setting on php.ini

As you can probably tell I am such a noob when it comes to programing. Thanks for your help.

to install Netpbm:

http://codex.galleryproject.org/Installing_an_Image_Processing_Library#NetPBM

download the binaries here:

http://sourceforge.net/projects/gallery/files/tools/

Install the binaries and enter it's location directory when you configure Netpbm. I installed it into the directory "gallery/netpbm"

The directory config setting would look something like

Quote:
/home/your_server_name/public_html/gallery/netpbm/

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-08-07 17:37
 
battledingo
battledingo's picture

Joined: 2006-08-25
Posts: 39
Posted: Wed, 2013-08-07 22:44

Suprsidr you are a legend.

Worked like a charm after swapping the ImageMagickToolkitHelper.class with your new one.

Quote:

try swapping /modules/imagemagick/classes/ImageMagickToolkitHelper.class with the one attached (rename it properly first)

IM changed the way it reports image formats recently.

-s

cheers