A user reported that their image resize had artifacting in it. It appears that certain WebP resulting images may have artifacting in transparent regions. Resizing as GIF doesn't seem to produce the same effect. Unsure if this is an upstream issue, and I couldn't spot an issue in the source image that would cause this behavior.
Is this a possible bug in a feature of sharp, unrelated to installation?
[x] Running npm install sharp completes without error.
[x] Running node -e "require('sharp')" completes without error.
Are you using the latest version of sharp?
[x] I am using the latest version of sharp as reported by npm view sharp dist-tags.latest.
What is the output of running npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp?
Possible bug
A user reported that their image resize had artifacting in it. It appears that certain WebP resulting images may have artifacting in transparent regions. Resizing as GIF doesn't seem to produce the same effect. Unsure if this is an upstream issue, and I couldn't spot an issue in the source image that would cause this behavior.
Is this a possible bug in a feature of sharp, unrelated to installation?
npm install sharp
completes without error.node -e "require('sharp')"
completes without error.Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?What are the steps to reproduce?
Resizing the specific attached image results in artifacting of the top few pixels on the resulting image.
What is the expected behaviour?
Resizing this image should not result in artifacting of the top few pixels on the resulting image.
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
Configuring lossless vs nearLossless vs no compression doesn't seem to help.
Please provide sample image(s) that help explain this problem
example_images.zip
I provided the input image and example output GIF and WebP results I'm seeing.