Skip to content

Commit

Permalink
chore(docs): Update transformOptions defaults (#34713)
Browse files Browse the repository at this point in the history
Co-authored-by: Lennart <lekoarts@gmail.com>
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
  • Loading branch information
3 people committed Feb 7, 2022
1 parent 72b3586 commit 9e8dd90
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ These values are passed in as an object to `transformOptions`, either as a prop
| ----------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `grayscale` | `false` | Convert image to grayscale |
| `duotone` | `false` | Add duotone effect. Pass `false`, or options object containing `{highlight: string, shadow: string, opacity: number}` |
| `rotate` | `0` | Rotate the image. Value in degrees. |
| `trim` | `false` | Trim "boring" pixels. See [the sharp documentation](https://sharp.pixelplumbing.com/api-resize#trim). |
| `rotate` | `auto` | Rotate the image. Value in degrees. |
| `trim` | `10` | Trim "boring" pixels. Value is the threshold. See [the sharp documentation](https://sharp.pixelplumbing.com/api-resize#trim). |
| `cropFocus` | `"attention"`/`ATTENTION` | Controls crop behavior. See [the sharp documentation](https://sharp.pixelplumbing.com/api-resize#resize) for strategy, position and gravity. |
| `fit` | `"cover"`/`COVER` | Controls behavior when resizing an image and proving both width and height. See [the sharp documentation.](https://sharp.pixelplumbing.com/api-resize#resize) |

Expand Down

0 comments on commit 9e8dd90

Please sign in to comment.