ShowThumb.aspx explained

QuickerSite webCMS is written in "classic" ASP/VBScript. Compared to other technologies like PHP and ASP.NET, this technology has some severe short-comings and limitations. One of them being its complete lack of image-handling capabilities. In fact, you needed expensive 3rd party solutions to handle image-resizing in classic ASP.

In QuickerSite webCMS, we have worked around this short-coming by providing a single ASP.NET page named ShowThumb.aspx. This file handles true image-resizing in a powerful and reusable way.

ShowThumb.aspx has some parameters that can be passed via the querystring:

  • img: the path to the image to be resized, relative to the location of showThumb.aspx (the root of your site in most cases)
  • maxSize: the size (in pixels) the image should be resized to (being this value the longest side of the image, either widht or height)

For example, one and the same picture (resize.jpg - our lovely kids) is being flushed by showThumb.aspx in 5 different sizes. These are 5 different pictures actually, with 5 different file-sizes (3 KB to 30 KB). In "reality", resize.jpg is a 131 KB and 1280/853px Jpeg file.

 1. src="/r/showthumb.aspx?img=/userfiles/resize.jpg&maxSize=100"

 2. src="/r/showthumb.aspx?img=/userfiles/resize.jpg&maxSize=200"

 3. src="/r/showthumb.aspx?img=/userfiles/resize.jpg&maxSize=300"

 4. src="/r/showthumb.aspx?img=/userfiles/resize.jpg&maxSize=400"

 5. src="/r/showthumb.aspx?img=/userfiles/resize.jpg&maxSize=500"

You can easily reuse showThumb.aspx for different occasions: to feed a media reader, a JavaScript-driven photo-gallery, etc...