User Agent Detection
User agent detection reads the User-Agent header that a browser sends with each request. The header names the browser and its version. Filestack uses it in the auto_image task to choose an image format the browser can display.
The auto_image Task
Add auto_image to a Filestack URL: https://cdn.filestackcontent.com/auto_image/HANDLE. Filestack reads the browser’s user agent and changes the image encoding to WebP or JPEG XR when the browser supports it.
Combining with Other Tasks
auto_image can be chained with other tasks, for example https://cdn.filestackcontent.com/resize=w:300/auto_image/compress/HANDLE. In the Filestack documentation example, a resized and compressed JPEG of 48.45 KB is delivered as a WebP file of 44.84 KB.
Related terms
Responsive Image Sizing
Serving each device an image sized for its screen through Filestack URLs.
File Picker
Filestack’s customizable upload widget with multiple source options.
Image Optimization
Processing API tasks that make image files smaller for web delivery.
More in Storage and Delivery
This page is one of 94 terms in the Filestack glossary.
Browse all terms