Hear from Slack, the ACLU, TED, & more at our customer summit in San Francisco Register
LOG IN SIGN UP
Documentation

Trimming images

  Last updated April 17, 2017

Trimming all edges by the same percentage

Trim all edges by 25%.

http://www.fastly.io/image.jpg?trim=0.25

alt text

Trimming parallel edges the same percentage

Trim top and bottom edge 25px, right and left edge 50px.

http://www.fastly.io/image.jpg?trim=25,50

alt text

Trimming all edges a different percentage

Trim top edge 25px, right edge 50px, bottom edge 75px and left edge 100px

http://www.fastly.io/image.jpg?trim=25,50,75,100

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