Skip to content

Commit 9e8dd90

Browse files
cameronbraidLekoArtsgatsbybot
authored
chore(docs): Update transformOptions defaults (#34713)
Co-authored-by: Lennart <[email protected]> Co-authored-by: gatsbybot <[email protected]>
1 parent 72b3586 commit 9e8dd90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/built-in-components/gatsby-plugin-image.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ These values are passed in as an object to `transformOptions`, either as a prop
253253
| ----------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
254254
| `grayscale` | `false` | Convert image to grayscale |
255255
| `duotone` | `false` | Add duotone effect. Pass `false`, or options object containing `{highlight: string, shadow: string, opacity: number}` |
256-
| `rotate` | `0` | Rotate the image. Value in degrees. |
257-
| `trim` | `false` | Trim "boring" pixels. See [the sharp documentation](https://sharp.pixelplumbing.com/api-resize#trim). |
256+
| `rotate` | `auto` | Rotate the image. Value in degrees. |
257+
| `trim` | `10` | Trim "boring" pixels. Value is the threshold. See [the sharp documentation](https://sharp.pixelplumbing.com/api-resize#trim). |
258258
| `cropFocus` | `"attention"`/`ATTENTION` | Controls crop behavior. See [the sharp documentation](https://sharp.pixelplumbing.com/api-resize#resize) for strategy, position and gravity. |
259259
| `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) |
260260

0 commit comments

Comments
 (0)