Getting started
Basics
Domains & Origins
Performance

Configuration
Basics
Conditions
Dictionaries
Domains & Origins
Request settings
Cache settings
Headers
Responses
Performance
Purging
Custom VCL
Image optimization
Video

Security
Access Control Lists
Monitoring and testing
Securing communications
Security measures
TLS
Web Application Firewall

Integrations
Logging endpoints
Non-Fastly services

Diagnostics
Streaming logs
Debugging techniques
Common errors

Account info
Account management
Billing
User access and control

Reference

    Controlling image quality

      Last updated June 29, 2018

    Deliver an image at a specific level of quality

    Output an image with a specific compression level of 60 (from a total of 0 to 100, where 85 is the default for lossy images when IO is enabled).

    https://www.fastly.io/image.jpg?quality=60

    an image of a pug puppy set to compression level of 60 out of 100

    Transcode and deliver an image at a specific level of quality

    Convert the image format to jpg and output an image with a specific compression level of 60.

    https://www.fastly.io/pug.png?format=jpg&quality=60

    an image of a pug puppy set transcoded and delivered at a compression level of 60 out of 100

    This article describes a product that may use third-party cloud infrastructure to process or store content or requests for content. For more information, see our cloud infrastructure security and compliance program.
    Back to Top