While checking my website’s Page Speed Insight, I found it lacking in one key area - Image optimizations. The problem is largely in the Homepage, where the large blog images are fitted into small thumbnails. There is an HTML solution for this with srcset attribute, but creating images with multiple resolutions manually is time-consuming. There might be a possible way with the Nginx-Image-Resolution module, but I can’t figure out the installation. I have also seen how other websites accomplish the resolution with what looks like server-side queries for height, width, and resolution. Online resources on server side image optimization have been hard to come by. Any help would be immensely appreciated.
Thank you.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
If your website is on WordPress then install TinyPNG Plugin. It will compress all images on your website automatically.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.