Answer the question
In order to leave comments, you need to log in
How does it affect page loading speed if you change the size of the image dynamically?
The site had a lot of pictures that are 300x400 in size. But often I display these pictures in the size of 100x70. Naturally, this is bad for SEO and I decided to make dynamic resizing through the SimpleImage class. That is, the links look like this site.ru/img/100/70/image.jpg instead of site.ru/image.jpg. But now the question arose of how much the server will load and whether there will be more brakes than if I loaded the full picture.
Answer the question
In order to leave comments, you need to log in
If there is enough disk space, then simply convert the pictures to the desired size in advance.
Example:
route-name - router name
eg images
template-name - processing template
small
- 120x90 Pixel
medium - 240x180 Pixel
large - 480x360 Pixel
file-name - file name how much the server will load - it all depends on the number of images on it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question