A clip of my image is not recognized by the ident command. (Windows startup)

Im using Paperclip to resize my images, but I keep getting this error

(1 error forbade saving this project: Image C: /DOCUME~1/HP_ADM~1/LOCALS~1/Temp/stream.5584.0.jpg is not recognized by the ident command.)

Ive tried almost everything I found on the Internet:

  • Adding Paperclip.options [: command_path] = "C: \ ImageMagick-6.6.6-Q16" to my development.rb
  • Making changes to project.rb (removing single quotes)

I run windows with the latest versions of Ruby / Rails and Paperclip 1.3.3

I just ended up in Rails and I have no idea what to do. I know this is a common problem, but all the answers I met helped.

Thanks in advance.

+4
source share
2 answers

I managed to get this to work on Windows XP (my development environment β€” deploying to Heroku worked fine) by doing the following:

  • Install ImageMagick in c: \ ImageMagick
  • edit config / environment / development.rb and adding the following

    Paperclip.options [: command_path] = "C: / ImageM ~ 1"

  • Kill and restart the dev server to select the new configuration.

I was unable to get it to work using the long paths of Windows. Only a "~ 1" monster. So the only thing you need to do is change

Paperclip.options[:command_path] = "C:\ImageMagick-6.6.6-Q16" 

to

 Paperclip.options[:command_path] = "C:/ImageM~1" 
+1
source

I managed to get it to work more or less the same way as Edward, with some additions:

  • Installing ImageMagick in c: \ Imagick6 -> chose this path to have a folder name of no more than 8 characters
  • If you have a previous version, make sure that you uninstall this old version from the path and that c: \ Imagick6 is in your Windows path (check with the prompt "echo% path%" on the command line)
  • change configuration / environment / development.rb and add:
    Paperclip.options [: command_path] = "C: / Imagick6"
  • Kill and restart the dev server to select a new configuration
  • You may even need to restart Windows to make sure the new path is selected (I did, I could not check if this helped)
+1
source

All Articles