[SOLVED] Image Magick fails

keithw

Joined: 2003-09-23
Posts: 19
Posted: Sun, 2012-12-23 04:12

Image Magick was working, then stopped. Deleted and reloaded.

Trying to Configure. Get these error messages upon Test:

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/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/)
file_exists(/usr/bin/gm)
file_exists(/usr/bin/identify)
getParameter exec.beNice for core plugin
Executing: ( "/usr/bin/identify"
"/home/nwowners/public_html/nuwaowners/photogallery/modules/imagemagick/data/test.gif"
)
2>"/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/g2dbgK5YjeB"
getParameter exec.expectedStatus for core plugin
file_exists(/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/g2dbgK5YjeB)
filesize(/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/g2dbgK5YjeB)
unlink(/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/g2dbgK5YjeB)
Regular Output:
Error Output:
Status: (expected 0)
file_exists(/usr/bin/gm)
tempnam(/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/,
imgk_)
file_exists(/usr/bin/convert)
Executing: ( "/usr/bin/convert" "-size" "200x200" "-geometry" "200x200"
"/home/nwowners/public_html/nuwaowners/photogallery/modules/imagemagick/data/test.gif"
"/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/imgk_LkCIro"
)
2>"/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/g2dbgGw97Eb"
file_exists(/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/g2dbgGw97Eb)
filesize(/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/g2dbgGw97Eb)
unlink(/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/g2dbgGw97Eb)
Regular Output:
Error Output:
Status: (expected 0)
unlink(/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/imgk_LkCIro)
file_exists(/usr/bin/gm)
file_exists(/usr/bin/combine)
file_exists(/usr/bin/composite)
is_executable(/usr/bin/composite)
file_exists(/usr/bin/gm)
tempnam(/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/,
imgk_)
Executing: ( "/usr/bin/composite" "-geometry" "+0+0"
"/home/nwowners/public_html/nuwaowners/photogallery/modules/imagemagick/data/test.jpg"
"/home/nwowners/public_html/nuwaowners/photogallery/modules/imagemagick/data/test.gif"
"/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/imgk_bQV30Y"
)
2>"/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/g2dbg0xb0mM"
file_exists(/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/g2dbg0xb0mM)
filesize(/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/g2dbg0xb0mM)
unlink(/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/g2dbg0xb0mM)
Regular Output:
Error Output:
Status: (expected 0)
unlink(/home/nwowners/public_html/nuwaowners/photogallery/g2data/tmp/imgk_bQV30Y)
chdir(/home/nwowners/public_html/nuwaowners/photogallery)

I'm not experienced enough to discern what the problem is or how to fix it. Help, anyone?

Also, Gd seems to be working fine. Do I even need Image Magick?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2012-12-23 16:41
Quote:
Gd seems to be working fine. Do I even need Image Magick?

No. but IM works better and works in a different memory space than PHP, so you will less likely run into memory limit issues.
GD shares PHP's memory and supports fewer formats.

Did you run IM's tests in gallery admin -> ImageMagick

I have an update to IM that works with newer IM builds.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
AMDelgado

Joined: 2013-01-06
Posts: 15
Posted: Mon, 2013-01-21 19:39

Hello

while doing a fresh install of Gallery 2.3.2 I ran into the same type of problem with Imagemagick

'Identify' test failed

The debug output follows - can someone help me identify the problem? Or anything missing with my server?

Thanks and regards

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/myname/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/myname/public_html/gallery/modules/imagemagick/data/test.gif" )
2>"/home/myname/g2data/tmp/g2dbgEsRyaw"
getParameter exec.expectedStatus for core plugin
file_exists(/home/myname/g2data/tmp/g2dbgEsRyaw)
filesize(/home/myname/g2data/tmp/g2dbgEsRyaw)
unlink(/home/myname/g2data/tmp/g2dbgEsRyaw)
Regular Output:
/home/myname/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/myname/g2data/tmp/, imgk_)
file_exists(/usr/bin/convert)
Executing: ( "/usr/bin/convert" "-size" "200x200" "-geometry" "200x200"
"/home/myname/public_html/gallery/modules/imagemagick/data/test.gif"
"gif:/home/myname/g2data/tmp/imgk_eQ4xPj" )
2>"/home/myname/g2data/tmp/g2dbgqfdyu7"
file_exists(/home/myname/g2data/tmp/g2dbgqfdyu7)
filesize(/home/myname/g2data/tmp/g2dbgqfdyu7)
unlink(/home/myname/g2data/tmp/g2dbgqfdyu7)
Regular Output:
Error Output:
Status: 0 (expected 0)
unlink(/home/myname/g2data/tmp/imgk_eQ4xPj)
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/myname/g2data/tmp/, imgk_)
Executing: ( "/usr/bin/composite" "-geometry" "+0+0"
"/home/myname/public_html/gallery/modules/imagemagick/data/test.jpg"
"/home/myname/public_html/gallery/modules/imagemagick/data/test.gif"
"gif:/home/myname/g2data/tmp/imgk_qCOFQV" )
2>"/home/myname/g2data/tmp/g2dbgSNDOcK"
file_exists(/home/myname/g2data/tmp/g2dbgSNDOcK)
filesize(/home/myname/g2data/tmp/g2dbgSNDOcK)
unlink(/home/myname/g2data/tmp/g2dbgSNDOcK)
Regular Output:
Error Output:
Status: 0 (expected 0)
unlink(/home/myname/g2data/tmp/imgk_qCOFQV)
chdir(/home/myname/public_html/gallery)
UNQUOTE

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2013-01-21 19:42

What version of IM on your server?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2013-01-21 19:49

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
________________________________
All New jQuery Minislideshow for G2/G3

 
AMDelgado

Joined: 2013-01-06
Posts: 15
Posted: Mon, 2013-01-21 20:06

Hello!

Thanks for your answer

The version of IM is Version: ImageMagick 6.8.0-1

Does your solution still apply to this version?

 
AMDelgado

Joined: 2013-01-06
Posts: 15
Posted: Mon, 2013-01-21 20:23

Thanks! It worked!

 
AMDelgado

Joined: 2013-01-06
Posts: 15
Posted: Sun, 2013-02-17 04:35

And now.....back to square one!

I had to reinstall Gallery 2.3.2 9several times, actually....) and when trying to configure ImageMagick I get the following error - this after I did the changes indicated by suprsidr

Again, "Identify" test failed....

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/muamba/g234albuns/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/muamba/public_html/gallery234/modules/imagemagick/data/test.gif" )
2>"/home/muamba/g234albuns/tmp/g2dbgrncsy4"
getParameter exec.expectedStatus for core plugin
file_exists(/home/muamba/g234albuns/tmp/g2dbgrncsy4)
filesize(/home/muamba/g234albuns/tmp/g2dbgrncsy4)
unlink(/home/muamba/g234albuns/tmp/g2dbgrncsy4)
Regular Output:
/home/muamba/public_html/gallery234/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/muamba/g234albuns/tmp/, imgk_)
file_exists(/usr/bin/convert)
Executing: ( "/usr/bin/convert" "-size" "200x200" "-geometry" "200x200"
"/home/muamba/public_html/gallery234/modules/imagemagick/data/test.gif"
"gif:/home/muamba/g234albuns/tmp/imgk_k8pC4W" )
2>"/home/muamba/g234albuns/tmp/g2dbgdlCNAP"
file_exists(/home/muamba/g234albuns/tmp/g2dbgdlCNAP)
filesize(/home/muamba/g234albuns/tmp/g2dbgdlCNAP)
unlink(/home/muamba/g234albuns/tmp/g2dbgdlCNAP)
Regular Output:
Error Output:
Status: 0 (expected 0)
unlink(/home/muamba/g234albuns/tmp/imgk_k8pC4W)
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/muamba/g234albuns/tmp/, imgk_)
Executing: ( "/usr/bin/composite" "-geometry" "+0+0"
"/home/muamba/public_html/gallery234/modules/imagemagick/data/test.jpg"
"/home/muamba/public_html/gallery234/modules/imagemagick/data/test.gif"
"gif:/home/muamba/g234albuns/tmp/imgk_kNreKI" )
2>"/home/muamba/g234albuns/tmp/g2dbgP1BGTB"
file_exists(/home/muamba/g234albuns/tmp/g2dbgP1BGTB)
filesize(/home/muamba/g234albuns/tmp/g2dbgP1BGTB)
unlink(/home/muamba/g234albuns/tmp/g2dbgP1BGTB)
Regular Output:
Error Output:
Status: 0 (expected 0)
unlink(/home/muamba/g234albuns/tmp/imgk_kNreKI)
chdir(/home/muamba/public_html/gallery234)

Can someone point me to the solution?

Thanks and regards

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-02-17 13:43
Quote:
Regular Output:
/home/muamba/public_html/gallery234/modules/imagemagick/data/test.gif GIF
50x50 50x50+0+0 8-bit sRGB 8c 232B 0.000u 0:00.000

Make sure you are renaming my attatched ImageMagickToolkitHelper.class_.txt to ImageMagickToolkitHelper.class and delete/replace the original.
From the quoted output, my class should work, but the original would not.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
AMDelgado

Joined: 2013-01-06
Posts: 15
Posted: Sun, 2013-02-17 15:41

Duh....My mistake, sorry!

Guess I was tired!

Thanks again, suprsidr!

 
starfield

Joined: 2008-02-28
Posts: 2
Posted: Thu, 2013-04-04 07:34

Thanks suprsidr. I updated my php version to 5.3 and then "Identify" part of ImageMagick was failing when I ran "Test Settings" until I included your changes.
thanks
--karthik