Why use tumbnails for images instead of resize with css?

I am a novice. Why is it better to create new tumbnails, and therefore more files, and not resize the image thumbnails with css every time the page loads?
11 months 2 weeks ago #1 by miluco

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5260) Offline
Hi Miluco,
The purpose is mainly for performance and to maintain consistent dimensions for a neat appearance. Creating thumbnails involves generating smaller versions of the images. Consider this scenario: if each article image is 1 MB in size, publishing a module with 5 items would result in a 5 MB load (only for images). Moreover, if you have, let's say, 3 modules published on a single page, the impact is even greater. By creating thumbnails, the 1 MB image size can be reduced to maybe 100 KB, with the same dimensions for each thumbnail. This not only enhances performance but also facilitates the creation of a tidy layout for the modules.
Hope this helps
11 months 2 weeks ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum