Gallery2 说 ImageMagick 识别二进制文件失败,但没有记录任何错误

Gallery2 说 ImageMagick 识别二进制文件失败,但没有记录任何错误

Gallery2 声称 ImageMagic 失败,但没有错误:

截屏

Binary Name     Pass/Fail
identify        Failed  

                Error messages:    
                Binary output:

                /nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/modules/imagemagick/data/test.gif GIF 50x50 50x50+0+0 8-bit sRGB 8c 232B 0.000u 0:00.000

日志看起来很清晰:

realpath(/nfs/c10/h02/mnt/144213/data/bin/)
realpath(/nfs)
is_dir(/nfs/c10/h02/mnt/144213/data/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(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/)
realpath(/nfs/c10/h02/mnt/144213/data/bin/)
realpath(/nfs)
is_dir(/nfs/c10/h02/mnt/144213/data/bin/)
file_exists(/nfs/c10/h02/mnt/144213/data/bin/gm)
realpath(/nfs/c10/h02/mnt/144213/data/bin/identify)
realpath(/nfs)
file_exists(/nfs/c10/h02/mnt/144213/data/bin/identify)
getParameter exec.beNice for core plugin
Executing: ( "/nfs/c10/h02/mnt/144213/data/bin/identify" 
"/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/modules/imagemagick/data/test.gif"
)
2>"/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/g2dbgLBlarX"
getParameter exec.expectedStatus for core plugin
file_exists(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/g2dbgLBlarX)
filesize(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/g2dbgLBlarX)
unlink(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/g2dbgLBlarX)
Regular Output:
/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/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)
realpath(/nfs/c10/h02/mnt/144213/data/bin/)
realpath(/nfs)
is_dir(/nfs/c10/h02/mnt/144213/data/bin/)
file_exists(/nfs/c10/h02/mnt/144213/data/bin/gm)
tempnam(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/,
imgk_)
realpath(/nfs/c10/h02/mnt/144213/data/bin/convert)
realpath(/nfs)
file_exists(/nfs/c10/h02/mnt/144213/data/bin/convert)
Executing: ( "/nfs/c10/h02/mnt/144213/data/bin/convert"  "-size"  "200x200"
 "-geometry"  "200x200" 
"/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/modules/imagemagick/data/test.gif"
 "gif:/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/imgk_e8b0rW"
)
2>"/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/g2dbg9l8WsV"
file_exists(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/g2dbg9l8WsV)
filesize(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/g2dbg9l8WsV)
unlink(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/g2dbg9l8WsV)
Regular Output:
Error Output:
Status: 0 (expected 0)
unlink(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/imgk_e8b0rW)
realpath(/nfs/c10/h02/mnt/144213/data/bin/)
realpath(/nfs)
is_dir(/nfs/c10/h02/mnt/144213/data/bin/)
file_exists(/nfs/c10/h02/mnt/144213/data/bin/gm)
file_exists(/nfs/c10/h02/mnt/144213/data/bin/combine)
file_exists(/nfs/c10/h02/mnt/144213/data/bin/composite)
is_executable(/nfs/c10/h02/mnt/144213/data/bin/composite)
realpath(/nfs/c10/h02/mnt/144213/data/bin/)
realpath(/nfs)
is_dir(/nfs/c10/h02/mnt/144213/data/bin/)
file_exists(/nfs/c10/h02/mnt/144213/data/bin/gm)
tempnam(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/,
imgk_)
Executing: ( "/nfs/c10/h02/mnt/144213/data/bin/composite"  "-geometry" 
"+0+0" 
"/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/modules/imagemagick/data/test.jpg"
 "/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/modules/imagemagick/data/test.gif"
 "gif:/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/imgk_Z8ZHnV"
)
2>"/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/g2dbg8tRyiV"
file_exists(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/g2dbg8tRyiV)
filesize(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/g2dbg8tRyiV)
unlink(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/g2dbg8tRyiV)
Regular Output:
Error Output:
Status: 0 (expected 0)
unlink(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery/g2data/tmp/imgk_Z8ZHnV)
chdir(/nfs/c10/h02/mnt/144213/domains/thisnthatcompany.com/html/gallery)

那么,如果没有错误,为什么 Gallery2 不同意 ImageMagick?希望有人遇到过类似的问题。

答案1

我刚刚在将 gallery2 迁移到新服务器时遇到了这个问题。旧服务器运行的是 ImageMagick 6.7.xy,而新服务器安装的是 6.8.xy 版本

他们论坛上的这条评论澄清了正在发生的事情并提供了一个可用的 ImageMagickToolkitHelper.class: http://galleryproject.org/node/110528#comment-401029

ImageMagick 改变了识别的输出,当 gallery2 测试没有收到预期的输出时,它们就会失败。

我希望这有帮助!

相关内容