We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.
Getting started
Basics
Domains & Origins
Performance

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

Security
Access Control Lists
Monitoring and testing
Securing communications
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

    Resizing images

      Last updated June 29, 2018

    Pixel width resize

    Resize the width to 200px.

    https://www.fastly.io/image.jpg?width=200

    alt text

    Percentage height resize

    Resize the height to 10% of the input image.

    https://www.fastly.io/image.jpg?height=0.10

    alt text

    Percentage width resize over 100%

    Resize the width to 150% of the input image.

    https://www.fastly.io/image.jpg?width=150p

    alt text

    Disproportionate resize

    Disproportionally resize to a width of 200px and a height that is 25% of the original.

    https://www.fastly.io/image.jpg?width=200&height=0.25

    alt text

    Resize to bounds

    Resize the image to fit within the bounds of 150px in width by 150px in height.

    https://www.fastly.io/image.jpg?width=150&height=150&fit=bounds

    alt text

    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