Skip to content

Commit e7e77a1

Browse files
kdichevgatsbybotwardpeet
authored
chore(gatsby-plugin-image): Add duotone, grayscale, rotate and trim options in transformOptions TS type (#31926)
* add duotone option in transformOptions gatsby-plugin-image * add grayscale, rotate and trim types * chore: format Co-authored-by: gatsbybot <[email protected]> Co-authored-by: Ward Peeters <[email protected]>
1 parent 27d3553 commit e7e77a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/gatsby-plugin-image/src/image-utils.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ export interface ISharpGatsbyImageArgs {
4848
transformOptions?: {
4949
fit?: Fit
5050
cropFocus?: number | string
51+
duotone?: {
52+
highlight: string
53+
shadow: string
54+
opacity?: number
55+
}
56+
grayscale?: boolean
57+
rotate?: number
58+
trim?: number
5159
}
5260
jpgOptions?: Record<string, unknown>
5361
pngOptions?: Record<string, unknown>

0 commit comments

Comments
 (0)