Skip to content

Commit 0558443

Browse files
DevSideDevSide
and
DevSide
authored
fix(gatsby-plugin-sharp): trim option failed (#22997)
Co-authored-by: DevSide <[email protected]>
1 parent 3d3b102 commit 0558443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-plugin-sharp/src/plugin-options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ exports.createTransformObject = args => {
5858
jpegProgressive: args.jpegProgressive || generalArgs.jpegProgressive,
5959
grayscale: args.grayscale || generalArgs.grayscale,
6060
rotate: args.rotate,
61-
trim: !!args.trim,
61+
trim: args.trim ? args.trim : undefined,
6262
duotone: args.duotone ? args.duotone : null,
6363
fit: args.fit,
6464
background: args.background,

0 commit comments

Comments
 (0)