title: Performance of Image Proxy
body: <p>I'm not good at putting up a question, feel free to reword/retag this to make it more understandable. Thanks.</p>
  
  <p>I have an image proxy page helps me handle all requests to images of product with custom manipulation values. For example:</p>
  
  <pre><code>http://mysite.com/ImageProxy.aspx?id={ITEM ID}&amp;width={WIDTH}&amp;height={HEIGHT}&amp;gloss={GLOSS}&amp;reflection={REFLECTION}
  </code></pre>
  
  <p>To reduce server-side loads, I cache by saving the files of already generated images for reuse when the same product with same manipulation values are called.</p>
  
  <p>This works at the beginning but is getting slower when more images shown in a single page. <strong>I want to know how I can improve this situation</strong>, or is image proxy tends to be slow by its natural?</p>
  
  <p><strong>*Edited: *</strong></p>
  
  <p>I am:</p>
  
  <ul>
  <li>developing with <code>ASP.NET MVC</code> </li>
  <li>using <code>System.Drawing.Drawing2D</code>, <code>System.Drawing.Imaging</code> to manipulate images. </li>
  <li>Currently a page is about ~500kb in size *(of result page) with 8~10 images per page and 30~50kb (PNG) for each image.</li>
  <li>image is currently PNG with transparency as reflection and rounded-corner effects as there as option and image may sit on various of background solid background color (ie/ GIF may be an option).</li>
  </ul>