Skip to content

Commit

Permalink
fix(gatsby-plugin-sharp): trim option failed (#22997)
Browse files Browse the repository at this point in the history
Co-authored-by: DevSide <DevSide@github.com>
  • Loading branch information
DevSide and DevSide committed Apr 16, 2020
1 parent 3d3b102 commit 0558443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-sharp/src/plugin-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ exports.createTransformObject = args => {
jpegProgressive: args.jpegProgressive || generalArgs.jpegProgressive,
grayscale: args.grayscale || generalArgs.grayscale,
rotate: args.rotate,
trim: !!args.trim,
trim: args.trim ? args.trim : undefined,
duotone: args.duotone ? args.duotone : null,
fit: args.fit,
background: args.background,
Expand Down

0 comments on commit 0558443

Please sign in to comment.