-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"out of order read" when combining normalise() with composite() #3669
Comments
Hi, yes, this will be related to defaulting to sequential read in v0.32.0. When the You should be able to workaround this for now via: - .composite([{ input: "watermark.png" }])
+ .composite([{ input: "watermark.png", sequentialRead: false }]) |
Thanks, that indeed fixes my test case. But in my real code, I'm using typescript and I get:
|
Commit de0fc07 fixes the original access method problem, and commit 3340120 ensures the type definitions for A workaround for TypeScript might be something like (untested): - .composite([{ input: "watermark.png" }])
+ .composite([{ input: "watermark.png", sequentialRead: false } as unknown as OverlayOptions]) Thanks for reporting this, the changes will be in v0.32.2. |
This comment was marked as off-topic.
This comment was marked as off-topic.
v0.32.2 now available. |
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?
throws error:
and writes a zero byte image.
If I comment out either the
composite()
ornormalise()
step, it works fine. But it fails when both are used together.It works if I downgrade to 0.31.3, so it could be related to #3600 (comment)
What is the expected behaviour?
Expect to see the image.jpg overlaid with watermark.png.
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
See the code snippet above, and test it with the images below.
Please provide sample image(s) that help explain this problem
The text was updated successfully, but these errors were encountered: