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