Skip to content

Commit

Permalink
docs: add instruction for crop image
Browse files Browse the repository at this point in the history
  • Loading branch information
sprabowo committed May 26, 2020
1 parent 8b6f51d commit c848b62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ Defaults values are shown:
// Optional: use falsy value to fall back to native image size
heights: [null],

// to crop image use array pair from widths and heights
// widths: [1600, 160, 80],
// heights: [900, 90, 45]

// Pass any format supported by sharp
formats: ["webp", "jpeg"], //"png"

Expand Down

0 comments on commit c848b62

Please sign in to comment.