How to compress an image file

Compressed files take up less space and let pages load more quickly.

Summary

Compressing images is essential for optimizing the web experience for end users, but also for improving data management for each agency on the Mass.gov CMS. Compressed files take up less space, enabling agencies to reduce data usage and save money on storage. And images will load quickly for users, using less data on mobile devices.

There are several ways to compress image files, but we suggest using the free Optimizilla online image compressor. You can compress and adjust up to 20 images at once, making it one of the most convenient tools available. Here is a step-by-step guide on compressing files with Optimizilla.

Step 1: Select Image

Drag and drop or select the "UPLOAD FILES" button

Step 2: Adjust compression settings

Click on an image thumbnail to adjust compression settings. JPGs are compressed by lowering quality settings, and PNGs are compressed by lowering color settings.

Step 3: Repeat process for each image

Repeat the process for each thumbnail and select "DOWNLOAD ALL" when finished.

Step 4: Save Image

Use the appropriate image format and filename when you save an image. This helps preserve image quality, improves search engine optimization (SEO), and makes it easy to find and organize files.