# Send picture from iPhone

**URL:** <https://www.ruby-forum.com/t/send-picture-from-iphone/191983>\
**Category:** Rails\
**Created:** [July 21, 2010, 8:46pm UTC](https://www.ruby-forum.com/t/send-picture-from-iphone/191983 "2010-07-21T20:46:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrSSSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e99b99/32.png) [@AndrSSSS](https://www.ruby-forum.com/u/AndrSSSS)\
**Post date:** [July 21, 2010, 8:46pm UTC](https://www.ruby-forum.com/t/send-picture-from-iphone/191983/1 "2010-07-21T20:46:12Z")

</div>

I’m working on a project that needs a picture taken from an iPhone to  
be sent to a Rails back end, which uses paperclip.

I’m trying to send it via http post but i get the following error:

We’re sorry, but something went wrong.  
We’ve been notified about this issue and we’ll take a look at it  
shortly.

The rails output shows:  
[paperclip] An error was received while processing:  
#\<Paperclip::NotIdentifiedByImageMagickError: /var/folders/pD/  
pDBak1ufEeSHluZ8kAougU+++TI/-Tmp-/stream20100721-4816-1pbpnnn-0 is not  
recognized by the ‘identify’ command.\>

What is the best way to do this?

---

<div class="post-metadata">

**Author:** ![AndrSSSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e99b99/32.png) [@AndrSSSS](https://www.ruby-forum.com/u/AndrSSSS)\
**Post date:** [July 22, 2010, 10:11am UTC](https://www.ruby-forum.com/t/send-picture-from-iphone/191983/2 "2010-07-22T10:11:09Z")

</div>

> The rails output shows:  
> [paperclip] An error was received while processing:  
> #\<Paperclip::NotIdentifiedByImageMagickError: /var/folders/pD/  
> pDBak1ufEeSHluZ8kAougU+++TI/-Tmp-/stream20100721-4816-1pbpnnn-0 is not  
> recognized by the ‘identify’ command.\>
> 
> What is the best way to do this?

The normal cause of that problem in my experience (and I’ve had it a few  
times) is that ‘identify’ isn’t in the path for the Rails process.

The easiest solution is to go to the server and type “which identify”  
then  
put the path in the config/environments/production.rb file (or whatever  
your  
environment it):

Paperclip.options[:image\_magick\_path] = ‘/foo/bar/bin/’

Cheers,

Andy
