Using clone
and joinChannel
together apply channel operation to all output
#4029
Closed
3 tasks done
Labels
Milestone
Possible bug
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.If you cannot confirm both of these, please open an installation issue instead.
Are you using the latest version of sharp?
sharp
as 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
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
?What are the steps to reproduce?
clone
to create three output.joinChannel
operation (add a alpha channel) to one of the output.fs.createReadStream
to create a readable stream, then pipe it to sharp.joinChannel
has been applied to all of the output. Every output has an alpha channel.What is the expected behaviour?
Using
joinChannel
afterclone
should only affect one output. The rest outputs should not have an alpha channel.Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
I also try the flowing code. It doesn't work, too.
Please provide sample image(s) that help explain this problem
None. All image is create by the code above.
The text was updated successfully, but these errors were encountered: