Paperclip error - NotIdentifiedByImageMagickError

随声附和 提交于 2019-12-01 05:23:54

The problem was that my ImageMagick didn't have JPEG delegates. I found out using convert -list format. So I reinstalled ImageMagick using MacPorts and reinstalled rmagick with the new Paths to ImageMagick.

I had similar issue and updating imagemagick resolved that. You might want to try that out as well.

I had the same problem on my mac. Resolved it by installing GhostScript

brew install gs

as paperclip documentation says: http://rdoc.info/gems/paperclip/frames/file/README.md

I had the same problem, and in addition to reinstalling everything (ImageMagick, libtool, ghostscript, jpeg), and finally running a general brew update && brew upgrade, I also had to relink freetype:

brew unlink freetype && brew link freetype

In my case I had a dirty ImageMagick installation (v7.0) that I installed manually before using rpm. This one doesn't showed me all dependencies that ImageMagick needed so Paperclip crashed when it tried to use convert or identify commands.

I recommend, for Unix users to install using yum or apt-get for installing all the dependencies correctly. Also recommend to install ghostscript in case that commands identify and convert cannot be summoned from paperclip.

cd ImageMagick-7.0.3-0
make uninstall
yum install ImageMagick ImageMagick-devel

Please follow this link for more specific details: How to Install ImageMagick on CentOS & RHEL

Rubygems used: paperclip (5.1.0) cocaine (0.5.8)

I had the same problem but i remove styles and applicattion started works

has_attached_file :picture
validates_attachment_content_type :picture, content_type: /^image\/(png|gif|jpeg|jpg)/

Installing libmagickwand-dev seemed to sort it out.

  1. sudo apt autoremove imagemagick
  2. rm /usr/bin/convert and rm /usr/bin/convert-im6
  3. sudo apt-get install imagemagick
  4. sudo apt-get install libmagickwand-dev

sudo apt install ffmpeg


ImageMagick delegates video processing. I lost more than 5 hours to understand why such a bug NotIdentifiedByImageMagickError


install make https://www.imagemagick.org/discourse-server/viewtopic.php?t=24284

From here

OLD syntax - :styles => { :medium => "300x300>" }
New syntax - style: { :medium => "300x300>" }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!