Skip to content
gpeipman edited this page Sep 25, 2010 · 5 revisions

Resize image is sample solution that demonstrates how to resize images in ASP.NET applications without markable loss in quality. I wrote this sample application because there are lot of examples available in web where this simple thing is done completely wrong using embedded thumbnails that some devices embed into photos. Demonstration guide:

  • Open images folder in Visual Studio and make sure that file original.jpg opens correctly. Then close this file.
  • Run application.
  • When application is opened in browser click [Create thumbnail] button.
  • Close application and check images folder.
  • There is now file called original_thumb.jpg that is ten times smaller by dimensions as original.
  • Note that thumbnail has good quality.

References: