title: Displaying .tif images in the asp:Image control of ASPNET
body: <p>I have been given a bunch of ".tif" image files that should be displayed on to my .aspx pages.
  Although i can see these images in design time. The asp:Image fails to render the image(.tif) on the browser. </p>
  
  <p>If i use a .jpg file instead of tiff image, it renders perfectly. </p>
  
  <p>Any ideas why this is a limitation ? </p>
  
  <p>Things i tried </p>
  
  <p>To have a Handler file <strong>SampleHandler.ashx</strong> in my project which does the processing of the request</p>
  
  <pre><code>  public void ProcessRequest(HttpContext context)
          {
              string path = context.Server.MapPath("~/img/image.tif");
              Image img = Image.FromFile(path);
              img.Save(context.Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);   
          }
  </code></pre>
  
  <p>And referring the Handler in my aspx code.</p>
  
  <p><strong>Ex:</strong></p>
  
  <pre><code>&lt;img src="SampleHandler.ashx"/&gt;
  </code></pre>
  
  <p>This approach works !! But what if i have multiple <strong>".tif"</strong> files to be loaded ?</p>
  
  <p>Thanks </p>
  
  <p>Configuration : ASP.NET 2.0
                  VSNET2008</p>