Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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