bhavna garg
bhavna garg

Reputation: 270

PaperclipError in rails

I am getting Paperclip error in my rails application for Windows10. Paperclip::Errors::NotIdentifiedByImageMagickError

I tried every possible thing for my error. I changed path.Paperclip.options[:command_path] = "C:/ImageMagick-6.8.5-10/Magick++/bin" I tried giving paths like C:/ImageMagick-6.8.5-10 or C:/Win/System32

I tried several commands like identify and convert but i am unable to solve this error. Can you please give a definite solution to solve this error for "Windows 10".

Upvotes: 3

Views: 125

Answers (3)

bhavna garg
bhavna garg

Reputation: 270

I uninstalled ImageMagick and downloaded ImageMagick-7.0.7-28-Q16-x64-dll.exe for windows 10. Along with that I downloaded file.exe which is not present in windows 10 by default, unlike Linux. File.exe provides commands that allowed ImageMagick to configure properly and run

Upvotes: 0

kart-able
kart-able

Reputation: 106

As far I am concerned, I placed the GnuWin32 directory and all its content somewhere I could locate easily on my disc and added in config/environments/development.rb:

Paperclip.options[:command_path] = 'C:\Sites\utils\GnuWin32\bin'

Upvotes: 1

Michael Arkhipov
Michael Arkhipov

Reputation: 765

Looks like convert is already a default Windows command so you can't upload the picture properly.

  1. Remove the convert.exe from your System32 files.
  2. Download and install the dynamic ImageMagick (be sure to check the legacy support so the convert command gets supported)

Upvotes: 0

Related Questions