Image Optimization
Image optimization reduces the file size of an image for web delivery while keeping its visible quality. In Filestack, each optimization is a Processing API task that you add to the file URL.
Optimization Tasks
compress: compresses JPG and PNG files. JPG compression uses mozjpeg.quality: sets the output quality of a JPGpjpg: converts the image to a progressive JPEG, which shows a preview while the rest of the file downloadsauto_image: converts the image to WebP or JPEG XR for browsers that support those formatsresize: returns the image at the width and height the page displaysoutput: converts the image to a format you choose, such as WebP or AVIF
Example URL
https://cdn.filestackcontent.com/resize=width:800/auto_image/compress/HANDLE resizes the image to 800 pixels wide, picks the format for the browser and compresses the result. Each result is cached on the Filestack CDN.
Performance Benefits
- Smaller files use less bandwidth
- Pages load faster
- Images load faster on mobile networks
Related terms
Image Transformations
Real-time image processing operations applied via URL parameters.
Processing Engine
Computational heart powering all file transformation and analysis tasks.
Responsive Image Sizing
Serving each device an image sized for its screen through Filestack URLs.
CDN (Content Delivery Network)
Fastly-based network that delivers every Filestack file and caches it for 30 days.
More in Transformations
This page is one of 94 terms in the Filestack glossary.
Browse all terms