All of a sudden started getting “Could Not Run The `Identify` Command. Please Install ImageMagick.”

前端 未结 8 1125
难免孤独
难免孤独 2021-02-02 09:01

I\'ve had ImageMagick, RMagick, & PaperClip working properly with everything setup including the config Paperclip.options[:command_path] in production.rb<

8条回答
  •  孤独总比滥情好
    2021-02-02 09:35

    You need to change the files production.rb and development.rb which are in:

    config/environments:

    # Paperclip config:
    Paperclip.options[:image_magick_path] = "/opt/ImageMagick/bin"
    Paperclip.options[:command_path] = "/opt/ImageMagick/bin"
    

    Just add those two lines just before the last line and restart the server.

    In MacOSX system, if you are using another location, just put the right PATH there.

提交回复
热议问题