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 呢?希望有人遇到過類似的問題。
我剛剛遇到了將gallery2遷移到新伺服器的問題。舊伺服器執行 ImageMagick 6.7.xy,而新伺服器安裝版本 6.8.xy
他們論壇上的這條評論澄清了正在發生的事情,並提供了一個有效的 ImageMagickToolkitHelper.class: http: //galleryproject.org/node/110528#comment-401029
ImageMagick 更改了 identify 的輸出,並且 gallery2 測試在未收到預期輸出時失敗。
我希望這有幫助!