Solved - ImageMagick problem

richardb

Joined: 2006-01-26
Posts: 33
Posted: Sun, 2009-11-08 11:56


Gallery URL = http://www.documents-at-eggsa.org/library/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.8 apache2handler
Webserver = Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.8
Database = mysqlt 5.0.81-community, lock.system=flock
Toolkits = Exif, Thumbnail, LinkItemToolkit, NetPBM
Acceleration = none/1800, none/86400
Operating system = Linux server.combraxis.net 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64
Default theme = eggsa
gettext = disabled
Locale = en_GB
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Rows in GalleryAccessMap table = 9525
Rows in GalleryAccessSubscriberMap table = 216386
Rows in GalleryUser table = 336
Rows in GalleryItem table = 216030
Rows in GalleryAlbumItem table = 16291
Rows in GalleryCacheMap table = 0

Moving a web site to a new server with gallery installation.

Gallery runs OK but I need to install graphics plugins ImageMagick and Netpmb.

Netpbm has gone OK but Imagemagick is giving me problems. Installed it from ImageMagick-6.5.5-10.tar.gz following instructons here: http://www.imagemagick.org/script/install-source.php

Installation went OK except for a lot of complains about perl. I ran make check and it passed all 47 tests (it said!). Convert is in /usr/local/bin/

BUT

When I try to configure ImageMagick plug in by typing in the path to ImageMagick, which, so far as I can see is /usr/local/bin/ wich certainly contains the 'convert' file, Gallery complains that that location does not contain valid files and certainly, if I save the path and do a test I get the result below.

Does it suggest to anyone what the problem is?

Thanks for any help you can offer,

Richard

-------------- gallery output

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

Problem executing binary:
identify Failed
Error messages:

Problem executing binary:
convert Failed
Error messages:

Problem executing binary:
composite Failed
Error messages:

Problem executing binary:

Debug output (4 failed tests) -
We gathered this debug output while testing your ImageMagick binaries. If you read through this carefully you may discover the reason why your ImageMagick binaries failed the tests.

is_dir(/usr/local/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/eggsaorg/library_stack/tmp/)
is_dir(/usr/local/bin/)
file_exists(/usr/local/bin/gm)
file_exists(/usr/local/bin/identify)
getParameter exec.beNice for core plugin
Executing: ( "/usr/local/bin/identify"
"/home/eggsaorg/public_html/library/modules/imagemagick/data/test.gif" )
2>"/home/eggsaorg/library_stack/tmp/g2dbgtss8RY"
getParameter exec.expectedStatus for core plugin
file_exists(/home/eggsaorg/library_stack/tmp/g2dbgtss8RY)
filesize(/home/eggsaorg/library_stack/tmp/g2dbgtss8RY)
fopen(/home/eggsaorg/library_stack/tmp/g2dbgtss8RY, r, 0)
feof(Resource id #91)
fgets(Resource id #91, 4096)
feof(Resource id #91)
fgets(Resource id #91, 4096)
feof(Resource id #91)
fgets(Resource id #91, 4096)
feof(Resource id #91)
fclose(Resource id #91)
unlink(/home/eggsaorg/library_stack/tmp/g2dbgtss8RY)
Regular Output:
Error Output:
identify: UnableToOpenConfigureFile `delegates.xml' @
configure.c/GetConfigureOptions/553.
identify: NoDecodeDelegateForThisImageFormat
`/home/eggsaorg/public_html/library/modules/imagemagick/data/test.gif' @
constitute.c/ReadImage/503.
Status: 1 (expected 0)
is_dir(/usr/local/bin/)
file_exists(/usr/local/bin/gm)
tempnam(/home/eggsaorg/library_stack/tmp/, imgk_)
file_exists(/usr/local/bin/convert)
Executing: ( "/usr/local/bin/convert" "-size" "200x200" "-geometry"
"200x200"
"/home/eggsaorg/public_html/library/modules/imagemagick/data/test.gif"
"gif:/home/eggsaorg/library_stack/tmp/imgk_a82Cte" )
2>"/home/eggsaorg/library_stack/tmp/g2dbggCt84t"
file_exists(/home/eggsaorg/library_stack/tmp/g2dbggCt84t)
filesize(/home/eggsaorg/library_stack/tmp/g2dbggCt84t)
fopen(/home/eggsaorg/library_stack/tmp/g2dbggCt84t, r, 0)
feof(Resource id #93)
fgets(Resource id #93, 4096)
feof(Resource id #93)
fgets(Resource id #93, 4096)
feof(Resource id #93)
fgets(Resource id #93, 4096)
feof(Resource id #93)
fclose(Resource id #93)
unlink(/home/eggsaorg/library_stack/tmp/g2dbggCt84t)
Regular Output:
Error Output:
convert: NoDecodeDelegateForThisImageFormat
`/home/eggsaorg/public_html/library/modules/imagemagick/data/test.gif' @
constitute.c/ReadImage/503.
convert: MissingAnImageFilename
`gif:/home/eggsaorg/library_stack/tmp/imgk_a82Cte' @
convert.c/ConvertImageCommand/2819.
Status: 1 (expected 0)
unlink(/home/eggsaorg/library_stack/tmp/imgk_a82Cte)
is_dir(/usr/local/bin/)
file_exists(/usr/local/bin/gm)
file_exists(/usr/local/bin/combine)
file_exists(/usr/local/bin/composite)
is_executable(/usr/local/bin/composite)
is_dir(/usr/local/bin/)
file_exists(/usr/local/bin/gm)
tempnam(/home/eggsaorg/library_stack/tmp/, imgk_)
Executing: ( "/usr/local/bin/composite" "-geometry" "+0+0"
"/home/eggsaorg/public_html/library/modules/imagemagick/data/test.jpg"
"/home/eggsaorg/public_html/library/modules/imagemagick/data/test.gif"
"gif:/home/eggsaorg/library_stack/tmp/imgk_7g4VHJ" )
2>"/home/eggsaorg/library_stack/tmp/g2dbggGrKkZ"
file_exists(/home/eggsaorg/library_stack/tmp/g2dbggGrKkZ)
filesize(/home/eggsaorg/library_stack/tmp/g2dbggGrKkZ)
fopen(/home/eggsaorg/library_stack/tmp/g2dbggGrKkZ, r, 0)
feof(Resource id #95)
fgets(Resource id #95, 4096)
feof(Resource id #95)
fgets(Resource id #95, 4096)
feof(Resource id #95)
fgets(Resource id #95, 4096)
feof(Resource id #95)
fgets(Resource id #95, 4096)
feof(Resource id #95)
fclose(Resource id #95)
unlink(/home/eggsaorg/library_stack/tmp/g2dbggGrKkZ)
Regular Output:
Error Output:
composite: NoDecodeDelegateForThisImageFormat
`/home/eggsaorg/public_html/library/modules/imagemagick/data/test.jpg' @
constitute.c/ReadImage/503.
composite: NoDecodeDelegateForThisImageFormat
`/home/eggsaorg/public_html/library/modules/imagemagick/data/test.gif' @
constitute.c/ReadImage/503.
composite: MissingAnImageFilename
`gif:/home/eggsaorg/library_stack/tmp/imgk_7g4VHJ' @
composite.c/CompositeImageCommand/1593.
Status: 1 (expected 0)
unlink(/home/eggsaorg/library_stack/tmp/imgk_7g4VHJ)
chdir(/home/eggsaorg/public_html/library)

-------------

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sun, 2009-11-08 14:03

Instead of installing it from source, why don't you install it from your linux distribution's repository?

Debian or Ubuntu?

apt-get imagemagick

Done, that'll install everything it needs. With all the complaints I can only assume it didn't install correctly.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Sun, 2009-11-08 15:00
 
richardb

Joined: 2006-01-26
Posts: 33
Posted: Mon, 2009-11-09 17:31

Thank you nivekiam and suprsidr for your help.

What I did in the end was uninstall then recompile using the option --without-perl and all went well. Gallery is very happy with the result and so I am too.

Thanks,

Richard