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
Explanation: a 12-frame animated TIFF is loaded and extend with one pixel at top is executed.
What is the expected behaviour?
The toBuffer should complete without error.
Actually, an error in libvips occurs:
Error: tiff2vips: out of order read -- at line 1386, but line 1260 requested
With small changes on the code, the error won't show:
6-frame animated TIFF instead of 12-frame
extending by 8 pixel instead of 1
extending with repeat instead of default
These successful variations are given in attached sample code as well.
I am unsure whether this might be a SharpJS issue or rather one in libvips. But it shows that how libvips is called makes a difference (extendWith: "repeat" which, to my understanding, enforces sequential operation).
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
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
?Same issue is visible in AWS Lambda on x86_64 architecture.
What are the steps to reproduce?
The attached source with the given TIFF file ends up in an error. The relevant code lines are:
Explanation: a 12-frame animated TIFF is loaded and extend with one pixel at top is executed.
What is the expected behaviour?
The toBuffer should complete without error.
Actually, an error in libvips occurs:
With small changes on the code, the error won't show:
These successful variations are given in attached sample code as well.
I am unsure whether this might be a SharpJS issue or rather one in libvips. But it shows that how libvips is called makes a difference (extendWith: "repeat" which, to my understanding, enforces sequential operation).
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
animated-tiff-extend-issue.zip
Please provide sample image(s) that help explain this problem
See archive above.
The text was updated successfully, but these errors were encountered: