Using Node.js to generate indexed PNG
A glance of indexed PNG Most PNG images have three or four channels, that indicate RGB or RGBA.
But PNG files also support indexed images, so you can put a palette into it and use one channel to indicate the palette index to represent the image.
In this article, we are going to discuss how to generate indexed PNG images in Node.js.
According to the wiki Portable Network Graphics , we know several parts of png: