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? 希望有人遇到类似的问题。
我只是碰到了这个问题,将gallery2迁移到新的服务器上。 旧服务器运行ImageMagick 6.7.xy而新服务器安装版本6.8.xy
这个评论在他们的论坛澄清发生了什么,并提供了一个工作ImageMagickToolkitHelper.class: http : //galleryproject.org/node/110528#comment-401029
ImageMagick改变了来自识别的输出,而当没有收到预期输出时,gallery2testing失败。
我希望这有帮助!