Page view counter

image load times, should I use thumbnails?

Last post 04-25-2006 12:32 AM by Blake05. 3 replies.

Sort Posts:

  • image load times, should I use thumbnails?

    04-23-2006, 11:40 AM
    • Loading...
    • dupdup
    • Joined on 02-26-2006, 4:03 PM
    • Posts 41
    • Points 205

    I've got a page that displays 30 or more images resized to 50x50 pixels.  I'm using an asp image tag running on the server.  Most of the images are much larger than the 50x50.  So far I've left it up to the server to resize it and the load times seem fine.  My question is whether I should rewrite this code to use thumbnail copies of these photos instead?  Is anyone familiar with how image resize works in asp?  Where the resource hit is taking place?  It seems like the resized images are cached...

    Thanks,

    Dan

     

  • Re: image load times, should I use thumbnails?

    04-23-2006, 12:27 PM

    You said you have left it up to the server to resize the images. Setting the width of an image, even if you are using an asp:Image control, does not actually resize the image. The image is downloaded to the users browser in full glory, then their browser scales it to the width you specify.

    Maybe this article will help?

    http://aspnet.4guysfromrolla.com/articles/012203-1.aspx

     

    End the confusion.
    Infinities Loop: TRULY Understanding ViewState
    .NET from a new perspective.

    This posting is provided "AS IS".
  • Re: image load times, should I use thumbnails?

    04-25-2006, 12:09 AM
    • Loading...
    • dupdup
    • Joined on 02-26-2006, 4:03 PM
    • Posts 41
    • Points 205

    Thanks for the article.   I've switched my site to use thumbnails that are generated on upload.  The info in your article led me to this also very useful article:

    http://west-wind.com/weblog/posts/283.aspx

    Thanks for the help,

    Dan

     

  • Re: image load times, should I use thumbnails?

    04-25-2006, 12:32 AM
    • Loading...
    • Blake05
    • Joined on 12-02-2005, 6:22 PM
    • Wisconsin
    • Posts 501
    • Points 2,498
    I've been wanting to do something like this in my photo gallary that I'm creating from scratch. I'm thinking someone could create a cool module in iis7 with these links Smile [:)]

    thanks
Page 1 of 1 (4 items)