По некоторым причинам тесты не выполняются для файлов pdf и txt, однако, используя приложение через браузер, я могу загрузить оба этих формата.
Есть идеи, как это исправить?
Сгенерированная ошибка:
Image /tmp/stream20110105-27382-hc9w7l-0.pdf is not recognized by the 'identify' command..
Вывод вызовов идентификации команды:
# png file works
[chris@chris-archlinux test]$ identify fixtures/files/brown-1920x1080.png fixtures/files/brown-1920x1080.png PNG 1920x1080 1920x1080+0+0 8-bit DirectClass 257KB 0.000u 0:00.000
# jpg works
[chris@chris-archlinux test]$ identify fixtures/files/avatar.jpg fixtures/files/avatar.jpg JPEG 478x478 478x478+0+0 8-bit DirectClass 72KB 0.000u 0:00.000
# txt fails
[chris@chris-archlinux test]$ identify fixtures/files/file_2.txt identify: unable to read font `/usr/share/fonts/Type1/n019003l.pfb' @ error/annotate.c/RenderFreetype/1059. identify: no decode delegate for this image format `/tmp/magick-XXKkKcoe' @ error/constitute.c/ReadImage/532. identify: unable to get type metrics `fixtures/files/file_2.txt' @ error/txt.c/ReadTEXTImage/256.
# pdf fails
[chris@chris-archlinux test]$ identify fixtures/files/file.pdf identify: no decode delegate for this image format `fixtures/files/file.pdf' @ error/constitute.c/ReadImage/532.