Print-ready mosaic image in node js
I’m building a mosaic generator in node.js using sharp. It should produce a print-ready mosaic image with a reduced or altered color palette.
I downscale an image to a small grid and map each pixel to a fixed palette, then upscale with nearest to get square tiles. That works for simple posterization, but I need a pop-art look like on the photo
What’s the right approach for this in Node.js?