# Paperclip - 'identify' command

**URL:** <https://www.ruby-forum.com/t/paperclip-identify-command/194804>\
**Category:** Rails\
**Created:** [September 11, 2010, 1:01am UTC](https://www.ruby-forum.com/t/paperclip-identify-command/194804 "2010-09-11T01:01:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 11, 2010, 1:01am UTC](https://www.ruby-forum.com/t/paperclip-identify-command/194804/1 "2010-09-11T01:01:31Z")

</div>

I’m following this tutorial:  
[http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/](http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/)

When it comes to running the application, I get the following errors:

-Photo C:/Users/ABDER-~1/AppData/Local/Temp/stream,2396,0.jpg is not  
recognized by the ‘identify’ command.  
-Photo C:/Users/ABDER-~1/AppData/Local/Temp/stream,2396,0.jpg is not  
recognized by the ‘identify’ command.

Why is that?

Thanks.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 11, 2010, 3:20pm UTC](https://www.ruby-forum.com/t/paperclip-identify-command/194804/2 "2010-09-11T15:20:44Z")

</div>

I followed the issue following this:

I just needed to replace the “‘#{m}’” with “"#{m}  
"” in the quote\_command\_options method.

def quote\_command\_options(\*options)  
options.map do |option|  
option.split(“'”).map{|m| “"#{m}"” }.join(“\'”)  
end  
end

From:  
[http://groups.google.com/group/paperclip-plugin/browse\_thread/thread/c69df6fbeb0ba30d](http://groups.google.com/group/paperclip-plugin/browse_thread/thread/c69df6fbeb0ba30d)

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 11, 2010, 3:21pm UTC](https://www.ruby-forum.com/t/paperclip-identify-command/194804/3 "2010-09-11T15:21:43Z")

</div>

Abder-Rahman A. wrote:

> I followed the issue following this:
> 
> I just needed to replace the “‘#{m}’” with “"#{m}  
> "” in the quote\_command\_options method.
> 
> def quote\_command\_options(\*options)  
> options.map do |option|  
> option.split(“'”).map{|m| “"#{m}"” }.join(“\'”)  
> end  
> end
> 
> From:  
> [http://groups.google.com/group/paperclip-plugin/browse\_thread/thread/c69df6fbeb0ba30d](http://groups.google.com/group/paperclip-plugin/browse_thread/thread/c69df6fbeb0ba30d)

I ‘followed’ the issue —\> I solved the issue 😉

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 11, 2010, 7:56pm UTC](https://www.ruby-forum.com/t/paperclip-identify-command/194804/4 "2010-09-11T19:56:25Z")

</div>

Thanks @radhames. As yo cn see I have included a workaround to be  
working for the mean while.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 11, 2010, 7:25pm UTC](https://www.ruby-forum.com/t/paperclip-identify-command/194804/5 "2010-09-11T19:25:31Z")

</div>

install imagemagick if you are in windows there is a problem with the  
command paperclip user since it call the shell as if is a linux shell  
and  
you get that errot try upgrading paperclip if it still not working ,  
reply  
with a bit more info.

but is mainly a problem with imagemagick
