You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should rotate the combined image by 90 degrees, but instead throws Error: Image to composite must have same dimensions or smaller, even though img and the created image are the exact same size.
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
DanielStout5
changed the title
Rotate after composite does not work
Rotate after composite throws "Image to composite must have same dimensions or smaller"
Aug 10, 2022
Ah, okay, thanks for the reply - that's what I had implemented as a workaround but I assume rendering the image out to a buffer just to read it back in is somewhat inefficient.
Is there any chance of another approach being added to Sharp in the future, maybe some way to specify at what point the rotation occurs?
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.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?
Composite an image and then try to rotate the combined result:
What is the expected behaviour?
It should rotate the combined image by 90 degrees, but instead throws
Error: Image to composite must have same dimensions or smaller
, even thoughimg
and the created image are the exact same size.Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
https://github.com/DanielStout5/SharpCompositeRotateBug
Please provide sample image(s) that help explain this problem
Not image specific, but an image is included in the git repo above.
The text was updated successfully, but these errors were encountered: