Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Properly Scaled Thumbnails !
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Properly Scaled Thumbnails !

 Post Reply Post Reply
Author
glypher View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 25 March 2003
Location: United States
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote glypher Quote  Post ReplyReply Direct Link To This Post Topic: Properly Scaled Thumbnails !
    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)

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 HERE.

hope this helps some people.

glypher said so.

GainesvilleBands.com
Back to Top
glypher View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 25 March 2003
Location: United States
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote glypher Quote  Post ReplyReply Direct Link To This Post 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

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 ;)

glypher said so.

GainesvilleBands.com
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.