Project Description
Web library of reusable components and classes for ASP.NET, Silverlight and WPF Projects, containing image thumbnailers, helpers, behaviors, controls...

The ASP.NET download, contains only the default ThumbnailHandler, which is a HttpHandler designed to create thumbnail images in the easiest way possible. The thumbnail is generated by simply appending a "suffix" to the original image URI. See the following example to better understand the concept.

Original Image URI:

Resized Image URI:

When you use this default ThumbnailHandler, the thumbnail is always resized proportionally to its original. When the desired image proportions are diferent from the original proportions, there will be borders on the sides or top and bottom of the new image to make it of the desired size without distortion. The resized image is cached in memory, to avoid overloading the server CPU. When the original image does not exists, it will be generated an image with the desired proportions and a customizable text (for example, "Image not found."), or you can provide a placeholder image.

This handler is extensible, effectively enabling you to create your own strategy for parsing the url, finding and opening the original file. In fact, the default ThumbnailHandler is already implemented as an extension. I'll post another sample extension soon that loads imagens stored in a database table.

The Silverlight download contains a behavior for filtering Deep Zoom collections and an Action to Toggle the FullScreen state of the application.

Last edited May 3, 2012 at 11:27 AM by kelps, version 6