title: Is it possible to compress the size (bytes) of an image to a specific size using Paperclip?
body: <p>I am running Ruby on Rails 3 and I would like to know if it is possible to compress the size (bytes) of an image to a specific size using the Paperclip plugin/gem. </p>
  
  <p>For example, if I upload an image of 1500kb, I would like to have a thumb resized to 10kb.</p>
  
  <p>At this time in my model file I have:</p>
  
  <pre><code>:styles       =&gt; {
    :thumb      =&gt; {
      :geometry =&gt; '50x50#',
      :quality  =&gt; 50,
      :format   =&gt; :jpg
    },
  }
  </code></pre>
  
  <p>If so, how to do that?</p>