HighTechTalks DotNet Forums  

Resizing Images on-the-fly vs. storing multiple copies on the file system

Dotnet Framework (Drawing) microsoft.public.dotnet.framework.drawing


Discuss Resizing Images on-the-fly vs. storing multiple copies on the file system in the Dotnet Framework (Drawing) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
dadonk
 
Posts: n/a

Default Resizing Images on-the-fly vs. storing multiple copies on the file system - 09-19-2005 , 09:31 AM






I am working with a web application that allows users to upload high
quality photos into an image library. Those images will then be used in
different places and at displayed at different sizes. My question is,
does anyone know if generating different sizes of the images on-the-fly
would be a big performance hit as opposed to generating several sizes
of each photo as they are uploaded and storing them on the file system.

For example, in the on-the-fly scenario you would just pass different
attributes to a file and it would take the original image that you have
stored and generate the appropriate size, like this.

getPhoto.aspx?size=small

or

getPhoto.aspx?size=large


Any suggestions or opinions would be greatly appreciated.


Reply With Quote
  #2  
Old   
James Westgate
 
Posts: n/a

Default Re: Resizing Images on-the-fly vs. storing multiple copies on thefile system - 09-19-2005 , 11:45 AM






How about checking to see if the image at the size requested is
available, and if not then converting it and storing it?

James


dadonk wrote:
Quote:
I am working with a web application that allows users to upload high
quality photos into an image library. Those images will then be used in
different places and at displayed at different sizes. My question is,
does anyone know if generating different sizes of the images on-the-fly
would be a big performance hit as opposed to generating several sizes
of each photo as they are uploaded and storing them on the file system.

For example, in the on-the-fly scenario you would just pass different
attributes to a file and it would take the original image that you have
stored and generate the appropriate size, like this.

getPhoto.aspx?size=small

or

getPhoto.aspx?size=large


Any suggestions or opinions would be greatly appreciated.


Reply With Quote
  #3  
Old   
SharpCoderMP
 
Posts: n/a

Default Re: Resizing Images on-the-fly vs. storing multiple copies on thefile system - 09-20-2005 , 11:16 AM



this may lead to some security issues. it would be *much* easier for a
haker to do the DOS in this case because of the fact that image
resampling with gdi+ is very resource intense.

dadonk wrote:
Quote:
I am working with a web application that allows users to upload high
quality photos into an image library. Those images will then be used in
different places and at displayed at different sizes. My question is,
does anyone know if generating different sizes of the images on-the-fly
would be a big performance hit as opposed to generating several sizes
of each photo as they are uploaded and storing them on the file system.

For example, in the on-the-fly scenario you would just pass different
attributes to a file and it would take the original image that you have
stored and generate the appropriate size, like this.

getPhoto.aspx?size=small

or

getPhoto.aspx?size=large


Any suggestions or opinions would be greatly appreciated.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.