I just wanted to know how other people do this.
I got a site where people can upload images, that can be used in various places, such as profile pictures etc etc. I need to have the image available in many different sizes. I know I am being a bit general, but I mean in the same way as facebook does.
I am trying to work out the best process to store images
The way I see it there are two ways.
1) resize the image (at the point of upload) to the biggest required size, and then dynamicly resize it to be displayed what what ever size is needed. This would require knowning the biggest ever size and also stroing that. The problem with this is that as it is stored quite large the resize will be processor intensive.
2) Resize the images into as many sizes as needed at the time, and keep the original.
This is either store one big copy and resize it, or store loads of copies to fit all the sizes
I am builiding a tourism website, and when people uplaod the images, I need to display them as slideshow, gallerys and as profile pictures. All different shapes and sizes.
Does anybody have experance of what big websites do
View Complete Post