Skip to content
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

Width limit for PNG #13

Open
Gugu7264 opened this issue Mar 29, 2023 · 2 comments
Open

Width limit for PNG #13

Gugu7264 opened this issue Mar 29, 2023 · 2 comments

Comments

@Gugu7264
Copy link

Hey! I'm using this library to generate huge images (128000 x 96000 for example), and I'm encountering the problem of max 65k pixels.
After some search, it seems to be due to chunk limit which is of this size, but I also found that PNG do not have width or height limit...
Do you think there is any way this could be implemented, or maybe you have done more research than I have and you've got a reason why there's a limit?

Thanks in advance :)

@Gugu7264
Copy link
Author

After some more research, this might be possible using multiple IDAT chunks? Let me know what you think :)

@thebigbadme
Copy link
Contributor

ok, data chunks are capped at 2^31 bytes which is the max addressible by 32-bits
your example likely requires 2 IDAT chunks as you suggested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants