title: Avoiding Cloudinary image multiple transformation to resize
body: <p>I'm using <a href="https://github.com/cloudinary/cloudinary_gem" rel="nofollow noreferrer">cloudinary</a> and <a href="https://github.com/assembler/attachinary" rel="nofollow noreferrer">attachinary</a> gems and the problem is that I have the original image kept with me in the column <code>picture</code> and it is repeatedly throughout the website done these transformations:</p>
  
  <ul>
  <li>resize to medium size;</li>
  <li>resize to smaller size.</li>
  </ul>
  
  <p>using this method: </p>
  
  <pre><code>&lt;%= cl_image_tag(p.path, :size =&gt; '398x235', :crop =&gt; :thumb) %&gt;
  </code></pre>
  
  <p>It is good and smart unless that you have to pay for each transformation.</p>
  
  <p>What I think is that we have to avoid it and create a copy of these pictures in another columns like <code>picture_medium</code> and <code>picture_small</code>. The point is:</p>
  
  <p>1- How to do it in controller;</p>
  
  <p>2- How the system will know what is the respective copy of a given picture.</p>