-
-
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
limitInputPixels should probably be 53-bit integer #3238
Comments
This would require support for the This means we'll need to wait until we drop support for Node.js 12, probably the forthcoming v0.31.0 release, then we can bump the minimum Node-API version from v5 to v6 (or v7) and consider adding this feature. https://nodejs.org/dist/latest/docs/api/n-api.html#node-api-version-matrix |
@lovell Isn't |
That would provide support for 53-bit integers, which is a wider range than 32-bit, but to support your request for 64-bit integers we'll need |
Ah, sure... 53-bit is more than sufficient for this purpose, in my opinion -- I can revise it. |
Great, thanks for the update, this might be a good time to roll out the :why_not_both: meme! 😄 |
Oh, I should also mention -- if you pass a number >= 2^32 (or likely even >= 2^31, since it's signed under the hood) you'll get the |
v0.30.6 now available with support for 53-bit integer values for |
src/common.h and src/common.cc show that limitInputPixels is an
int
, but pixel counts can certainly exceed this (e.g. inputs fortile()
) while still perhaps being worthy of some limiting, so ideally you could still set limits above 2^31 or 2^32.The text was updated successfully, but these errors were encountered: