Suboptimal image resizing problem
-
Hi Mike,
I’ve just used Google PageSpeed Insights for my site which revealed numerous warnings like this:
https://lh5.googleusercontent.com/-MvaubvtLHmM/UAySJWkLYbI/AAAAAAAAAEo/I2E_2LzTV44/IMG_0879.JPG?imgmax=640 is resized in HTML or CSS from 640×480 to 606×456. Serving a scaled image could save 4.9KiB (11% reduction).
As it turns out in my posts Shashin codes like
[shashin type="photo" id="31" size="large"]
generated HTML like<img src="https://lh5.googleusercontent.com/-MvaubvtLHmM/UAySJWkLYbI/AAAAAAAAAEo/I2E_2LzTV44/IMG_0879.JPG?imgmax=640" alt="Wifi switchover fail" width="600" height="450" class="shashinThumbnailImage" id="shashinThumbnailImage_1" />
I could easily notice that these images could be resized on the server side by providing the relevant imgmax parameter like https://lh5.googleusercontent.com/-MvaubvtLHmM/UAySJWkLYbI/AAAAAAAAAEo/I2E_2LzTV44/IMG_0879.JPG?imgmax=600
This would conserve bandwith as much as possible.
Is there any reason why Shashin doesn’t use the best value for this parameter in such cases?
Thanks,
Laci
- The topic ‘Suboptimal image resizing problem’ is closed to new replies.