Completely stumped by “is not recognized by the 'identify' command” error in rails/paperclip on windows dev box

↘锁芯ラ 提交于 2019-12-04 20:26:12

There is some goofy stuff going on in the paperclip.rb file. It adds single quotes around command line arguments. If I can recall, I believe its on line 133 and the line looks like this:

... '#{m}' ...

Just remove the single quotes.

If that doesn't help there was also an issue with there being spaces in the ImageMagick path. It didn't like C:\Program Files..., so I had to change it to C:\Progra~1...

That seemed to do the trick for me. That will at least get the identify executable running. I am currently having issues with running convert and am completely confused. :)

There is an issue with the last couple of releases of paperclip when running on Windows. I rollback to a version where it worked but there is a fix that someone has since mentioned. See my comment here + the other fix below:

http://github.com/thoughtbot/paperclip/issues/issue/220/#comment_333169

One thing I just found out as well on windows this command "150x150>" makes problems if you go for Brandon's version as '>' is used for piping on windows boxes. Maybe use something like "150x150#" instead.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!