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...
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.
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:
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 [:)]
dupdup
Member
205 Points
41 Posts
image load times, should I use thumbnails?
Apr 23, 2006 03:40 PM|LINK
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
InfinitiesLoop
Participant
1962 Points
322 Posts
AspNetTeam
Re: image load times, should I use thumbnails?
Apr 23, 2006 04:27 PM|LINK
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
Infinities Loop: TRULY Understanding ViewState
.NET from a new perspective.
This posting is provided "AS IS".
dupdup
Member
205 Points
41 Posts
Re: image load times, should I use thumbnails?
Apr 25, 2006 04:09 AM|LINK
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
Blake05
Contributor
2558 Points
510 Posts
Re: image load times, should I use thumbnails?
Apr 25, 2006 04:32 AM|LINK
thanks
Blog - Website: windowscoding.com