Possible bug
Is this a possible bug in a feature of sharp, unrelated to installation?
If you cannot confirm both of these, please open an installation issue instead.
Are you using the latest version of sharp?
If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of sharp that is not the latest, please open an issue against that package instead.
What is the output of running npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp?
System:
OS: macOS 12.6
CPU: (8) x64 Apple M1 Pro
Memory: 28.89 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.17.2 - ~/.nvm/versions/node/v14.17.2/bin/node
npm: 6.14.13 - ~/.nvm/versions/node/v14.17.2/bin/npm
npmPackages:
sharp: ^0.31.1 => 0.31.1
What are the steps to reproduce?
- Take any input animated gif
- Call
await sharp('input_filename.gif', { animated: true }).toFile('output_filename.gif');
- File size is more than double the original.
What is the expected behaviour?
Output file size should be the same or nearly the same as the input file size.
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
await sharp('input_filename.gif', { animated: true }).toFile('output_filename.gif');
Please provide sample image(s) that help explain this problem
https://media.giphy.com/media/jUwpNzg9IcyrK/giphy.gif
Possible bug
Is this a possible bug in a feature of sharp, unrelated to installation?
npm install sharpcompletes without error.node -e "require('sharp')"completes without error.If you cannot confirm both of these, please open an installation issue instead.
Are you using the latest version of sharp?
sharpas reported bynpm view sharp dist-tags.latest.If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of
sharpthat is not the latest, please open an issue against that package instead.What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp?System:
OS: macOS 12.6
CPU: (8) x64 Apple M1 Pro
Memory: 28.89 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.17.2 - ~/.nvm/versions/node/v14.17.2/bin/node
npm: 6.14.13 - ~/.nvm/versions/node/v14.17.2/bin/npm
npmPackages:
sharp: ^0.31.1 => 0.31.1
What are the steps to reproduce?
await sharp('input_filename.gif', { animated: true }).toFile('output_filename.gif');What is the expected behaviour?
Output file size should be the same or nearly the same as the input file size.
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
await sharp('input_filename.gif', { animated: true }).toFile('output_filename.gif');Please provide sample image(s) that help explain this problem
https://media.giphy.com/media/jUwpNzg9IcyrK/giphy.gif