The largest possible number of pixels a gif frame can contain.
This static property defines how large, in terms of dimension, a gif image is allowed to be loaded into a p5 sketch. The default value is 16,000,000. This means an image's width multiplied by its height must not exceed 100,000,000. For example, an image with width 10,000 and height 10,000 is just enough, as well as an image with width 5000 and height 20,000. An image with width 20,000 and height 20,000 is not allowed and will cause an error when it is loaded.
To avoid this error, you should try to reduce the image dimension of the gif. If that is not possible or not desirable, you can set MAX_GIF_PIXELS to a higher value instead.
Examples
Notice any errors or typos? Please let us know. Please feel free to edit src/image/loading_displaying.js and open a pull request!