token-art-tools icon indicating copy to clipboard operation
token-art-tools copied to clipboard

Maximum drawingBuffer size

Open owmo-dev opened this issue 3 years ago • 0 comments

Chrome has a limitation of 33177600 total pixels (5760 x 5760) as the maximum amount it can capture. The custom resolution picker needs to do a quick validation to ensure pixels are not exceeding this value, otherwise captured images will be clipped in strange ways. This might be only limited to WebGL... might need to test different libraries when designing a solution.

https://chromium.googlesource.com/chromium/src/+/0781429bb10a95aae3c9eb3141fc47852cfe300a%5E%21/

owmo-dev avatar Mar 09 '22 23:03 owmo-dev