Назад | Перейти на главную страницу

Gallery2 сообщает, что ImageMagick Identify не работает, но не регистрирует ошибок

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.x.y, а на новом сервере была установлена ​​версия 6.8.x.y

Этот комментарий на их форуме разъясняет, что происходит, и предлагает рабочий класс ImageMagickToolkitHelper.class: http://galleryproject.org/node/110528#comment-401029

ImageMagick изменил вывод с identify, и тесты gallery2 завершаются ошибкой, если не получают ожидаемого результата.

Надеюсь, это поможет!