=================== Properly Scaled Thumbnails V.01 code by: (i'm pretty sure i wrote this) comments by: glypher ===================
contents: I CHANGES II DESCRIPTION III USAGE IV INSTALLATION V IN ACTION VI CONTACT
------------------ VERSION CHANGES ------------------ V.01 - Made a change to the code to allow Height and Width to be optional (actually just a move of stuff, i was putting the cart before the horse) thanks to Rob for pointing out my oopsie. - added some more comments
V.00 ORIGINAL RELEASE
------------------ DESCRIPTION ------------------
This a modification to the popular ASP .NET thumbnailer, from The code project: http://www.codeproject.com/aspnet/Thumbnail_Image.asp?print= true
This modification of the code allows you to define a "box" by supplying height and witdth along with the image. The thumbnailer will properly scale the image inside of that box, instead of just streatching it.
EX: thumbnailimage.aspx?filename=/gallery/MyUglyCat.jpg&widt h=120&height=120
filename: the full path and the image name to be thumbnailed width: the maximum width of the image (defaults to 100) height: the maximum height of the image (defaults to 100)
------------------ USAGE ------------------
stick it in your root directory (along with error.gif) and call it like this:
<img src="/ thumbnailimage.aspx?filename=/gallery/MyUglyCat.jpg&widt h=120&height=120" border="0">
------------------ IN ACTION ------------------ I'm currently using this for the flyers page at GainesvilleBands.com
------------------ CONTACT ------------------
You can email me glypher@glypher.com if you have any comments/praise ;)
|