When should you compress an image?
Compress images before uploading them to websites, blogs, CMS libraries, email campaigns, or product pages where file size affects load time and Core Web Vitals.
Use the optional max-width setting when you want to reduce both pixel dimensions and file size for hero images, article thumbnails, or screenshots that do not need full source resolution.
