Paperclip Error: NotIdentifiedByImageMagickError

前端 未结 7 2099
旧时难觅i
旧时难觅i 2021-01-04 11:30

I\'ve had a rails install with Paperclip working just fine for a while now and in a recent deploy it has broken. I believe it coincided with a gemfile update, because nothi

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-04 12:17

    I had this issue when using OSX + MAMP + Passenger + Paperclip and after setting the command_path and ensuring imagemagick was properly installed via brew, properly setting the temp and upload directories for passenger to something writable, it still wouldn't work!

    The solution was to edit the envvars file for MAMP in /Applications/MAMP/Library/bin/envvars and comment out the export DYLD_LIBRARY_PATH line.

    That is, change the line that says

    export DYLD_LIBRARY_PATH
    

    to

    # export DYLD_LIBRARY_PATH
    

    Then restart MAMP and feel the elation when your images are properly uploading/resizing.

提交回复
热议问题