Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For indexed PNGs, we only need to allocate a palette large enough to accommodate the number of indexed colours in the image. For images that don't use all 256 colours, this slightly reduces the memory usage for these images.
- Loading branch information