title: rails PaperClip / S3 / ImageMagick
body: <p>I'm using paperclip in my rails 3 app to upload photos, resize with ImageMagick and then post to S3.</p>
  
  <p>For the life of me, I can't figure out why this process is soooo slow on my localhost? Even without any resizing it's crazy slow... 30+ seconds for one photo?</p>
  
  <p>And my network &amp; cpu aren't even working hard?</p>
  
  <p>Why?</p>
  
  <p><strong>Updating with Model:</strong></p>
  
  <pre><code>class Photo &lt; ActiveRecord::Base
  
      belongs_to :photo_album
  
    has_many :comments, :as =&gt; :commentable
  
    #Paperclip for photo
    has_attached_file :photo,
                      :styles =&gt; {:large =&gt; "600x600&gt;"},
                      :default_style =&gt; :original,
                      :default_url =&gt; '/images/:attachment/default_:style.png',
                      :path =&gt; "/photos/:user_id/:attachment/:id/:style/:basename.:extension",
                      :storage =&gt; :s3,
                      :s3_credentials =&gt; File.join(Rails.root, 'config', 's3.yml'),
                      :s3_protocol =&gt; 'http'
  end
  </code></pre>