2016-06-04 3 views
2

오늘까지 레일 클립을 설치 한 후 오랫동안 정상적으로 작동했습니다. 나는 이것이 무엇이 원인인지 모른다. ImageMagick에 대해 배우려고 했으므로 공식 웹 사이트에서 다운로드했습니다. 그것을 설치 한 후 나는 libpng15.15.dylib 또는 그와 비슷한 오류가 발생했습니다. 따라서 CLI에서 rm -rf 명령을 사용하여 ImageMagick을 제거합니다. 그런 다음 homebrew을 사용하여 다시 설치했습니다.아마존 S3를 사용하는 클립 오류 - NotIdentifiedByImageMagickError

그 후에 나는 다시 내 응용 프로그램을 실행 하고이 오류있어.

Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/...-3gfyiu.png[0]' 2>/dev/null 
[paperclip] An error was received while processing: #<Paperclip::Errors::NotIdentifiedByImageMagickError: Paperclip::Errors::NotIdentifiedByImageMagickError> 

identify -format '%wx%h,%[exif:orientation]' '/var/folders/5x/...3gfyiu.png[0]이 오류가 발생했습니다.

identify: unable to open image '/var/folders/....': No such file or directory @ error/blob.c/OpenBlob/2705. 
identify: unable to open file '/var/folders/....' @ error/png.c/ReadPNGImage/3921. 

identify -format '%wx%h,%[exif:orientation]' '/var/folders/5x/...3gfyiu.png이 오류가 발생했습니다.

unknown image property "%[exif:orientation]" @ warning/property.c/InterpretImageProperties/3762. 

많은 Stackoverflow 관련 질문이 있지만 관련 답변은 모두 저에게 맞지 않습니다.

이것들은 지금까지 내가 한 것입니다.

  • Paperclip.options[:command_path] = "/usr/local/bin/identify"
  • Paperclip.options[:command_path] = "/usr/local/bin"
  • brew update && brew upgrade imagemagick
  • 제거하고 설치 ImageMagick이
  • 다운 그레이드 cocaine0.3.2
  • brew uninstall imagemagick jpeg libtiff brew install imagemagick
  • brew install imagemagick --build-from-source
  • 01,235,164로

identify 또는 convert 명령은 CLI에서 올바르게 작동합니다.

환경 :

  • mongoid - 클립 0.0.10
  • 클립 4.3.2
  • mini_magick 4.5.1
  • 레일 4.2.4
  • 맥 OS X 요세미티
+0

Absolutelty 같은 문제를 참조하십시오. 어떤 식 으로든 '% wx % h, 1' 'some_pic.jpg'' 명령은 이고'식별 형식 '% wx % h, 1'some_pic.jpg [0] ''은 – aristofun

+0

이 아닙니다. @aristofun 그래서 어떻게 해결할 수 있습니까? – Anon

+1

imagemagick 인 것으로 보입니다. 6.9.4-7 버그 http://stackoverflow.com/questions/37646471/imagemagick-brackets-in-file-names-no-such-file-or-directory-mac-os-x/37647282? noredirect = 1 # comment62775533_37647282 – aristofun

답변