Problem . I wanted to set up the image upload feature on my website. But I wanted to show both the original image and a small thumbnail.
The choice . Which way is better - to create a separate image (thumbnail) in the directory when loading the image or to show a smaller version, reducing its height and width in a fixed ratio every time the image is requested?
How am I doing this now . Later, it seems to me better, because it will not take up much disk space, but it must again and again resize the image. Which one is better?
This is a common question for a web application, without a specific language.
Any idea how facebook or google do it?
Question . My question is how to create thumbnails and display them on a website, creating a copy of the original image with a smaller size or generating a thumbnail dynamically every time it is requested.
source
share