LOG IN SIGN UP
Documentation

Resizing images

  Last updated August 21, 2017

Pixel width resize

Resize the width to 200px.

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

alt text

Percentage height resize

Resize the height to 10% of the input image.

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

alt text

Percentage width resize over 100%

Resize the width to 150% of the input image.

http://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.

http://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.

http://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