# paperclip - imagemagick Configuration

**URL:** <https://discuss.rubyonrails.org/t/paperclip-imagemagick-configuration/46560>\
**Category:** rubyonrails-talk\
**Created:** [October 2, 2009, 5:57pm UTC](https://discuss.rubyonrails.org/t/paperclip-imagemagick-configuration/46560 "2009-10-02T17:57:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom10](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@Tom10](https://discuss.rubyonrails.org/u/Tom10)\
**Post date:** [October 2, 2009, 5:57pm UTC](https://discuss.rubyonrails.org/t/paperclip-imagemagick-configuration/46560/1 "2009-10-02T17:57:35Z")

</div>

I'm not sure what changed, but I started getting errors from the paperclip plugin:

[paperclip] An error was received while processing: #\<Paperclip::NotIdentifiedByImageMagickError: /tmp/stream.13688.0 is not recognized by the 'identify' command.\>

I have verified the command path is correct. What else should I be checking?

Thanks! Tom

---

<div class="post-metadata">

**Author:** ![Tom10](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@Tom10](https://discuss.rubyonrails.org/u/Tom10)\
**Post date:** [October 2, 2009, 6:17pm UTC](https://discuss.rubyonrails.org/t/paperclip-imagemagick-configuration/46560/2 "2009-10-02T18:17:35Z")

</div>

I figured it out! I was setting my options like this (which used to work):

Paperclip::Attachment.default\_options.merge!(:command\_path =\> "/usr/ local/bin")

But I noticed others using this method, which solved my problem!

Paperclip.options.merge!(:command\_path =\> "/usr/local/bin")

I hope this helps someone else!

Thanks, Tom

---

<div class="post-metadata">

**Author:** ![petro\_dev](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@petro\_dev](https://discuss.rubyonrails.org/u/petro_dev)\
**Post date:** [October 19, 2009, 8:50am UTC](https://discuss.rubyonrails.org/t/paperclip-imagemagick-configuration/46560/3 "2009-10-19T08:50:46Z")

</div>

Also for other peoples benefit:

For windows, make sure you close down the rails server and any command prompt instances and restart them. The imagemagick install path in program files (the folder containing identify.exe) needs to be accessible in the PATH variable. To check type echo %PATH% in the command prompt. If the imagemagick installation folder shows, the rails app should function.

---

<div class="post-metadata">

**Author:** ![PeterP](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@PeterP](https://discuss.rubyonrails.org/u/PeterP)\
**Post date:** [November 10, 2009, 7:45am UTC](https://discuss.rubyonrails.org/t/paperclip-imagemagick-configuration/46560/4 "2009-11-10T07:45:25Z")

</div>

This did the trick for me! Thanks for sharing!
