Print Page | Close Window

Properly Scaled Thumbnails !

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=5999
Printed Date: 29 March 2026 at 12:51am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Properly Scaled Thumbnails !
Posted By: glypher
Subject: Properly Scaled Thumbnails !
Date Posted: 26 September 2003 at 1:58pm

well i know that some of you have been using that cool ASP .NET thumbnailer from the code project

( http://www.codeproject.com/aspnet/Thumbnail_Image.asp?print=true - http://www.codeproject.com/aspnet/Thumbnail_Image.asp?print= true )

for a while now.  But i was never really happy with the way it just squished everything into whatever size the box you wanted... without properly scaling it.

So i fixed it... at least i think i did.  I had this sitting around being used for about a year now.  And for the life of me i dont remember if i was the one who wrote it or if i just modded something i saw or if i just modded the codeproject stuff.

so you can grab it http://www.afn.org/~xonix/downloads/software/thumbnailimage.zip - HERE .

hope this helps some people.



-------------
glypher said so.

http://www.gainesvillebands.com - GainesvilleBands.com



Replies:
Posted By: glypher
Date Posted: 08 January 2004 at 3:02pm

a little bump for the new version.

 

from the included readme.txt file:

Quote ===================
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 - 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 mailto:glypher@glypher.com - glypher@glypher.com if you have any comments/praise ;)



-------------
glypher said so.

http://www.gainesvillebands.com - GainesvilleBands.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net