Skip to content

Commit

Permalink
Fix resizing arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilwanner committed Aug 2, 2020
1 parent b3f4c66 commit 20cdee2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/gifsicle/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ const encode = async (image: Buffer, encodeOptions: EncodeOptions = {}): Promise
typeof filledEncodeOptions.colors === 'number' ? `--colors=${filledEncodeOptions.colors}` : false,

// resize image
filledEncodeOptions.width || filledEncodeOptions.height
? `--resize ${filledEncodeOptions.width || '_'}x${filledEncodeOptions.height || '_'}`
: false,
...(filledEncodeOptions.width || filledEncodeOptions.height
? ['--resize', `${filledEncodeOptions.width || '_'}x${filledEncodeOptions.height || '_'}`]
: []),

// set input & output file names
'-i',
Expand Down

0 comments on commit 20cdee2

Please sign in to comment.