Search code examples
ruby-on-railsherokurmagick

Image Magick not working on Heroku


I've installed RMagick, specified the gem in my gemile, committed chanages. Pushed to Heroku, Heroku shows it was installed in log, but when I attempt to upload a picture I get this notice:

Image Could not run the identify command. Please install ImageMagick.

Help a new hobbyist out here!

Rails 4.1.8 Ruby 2.1.5 Heroku Cedar

gem 'rmagick' in gemfile


Solution

  • I finally got it working,i had totally the same problem just add Paperclip.options[:command_path] = 'Path to your ImagineMagick'

    In all your environments...and the most important!! add it to your actual environment.rb file it is in config folder mine looks like this

    require File.expand_path('../application', __FILE__)
    
    Rails.application.initialize!
    Paperclip.options[:command_path] = 'C:\ImageMagicks'
    

    Click To see the image

    and this is my Production.rb Production.rb

    Now it should work.