A simple Node.js tool that turns binary strings into black-and-white images. Pick the image size, scale the pixels, and generate every possible combination.
- Convert any binary string
0010into a black-and-white image - Supports arbitrary width × height grids
- Scale pixels to make images bigger (e.g., 100×100 per logical pixel)
- Bulk generation of all combinations (perfect for 2×2, 3×3, etc.)
npm install canvasconst { binaryToImage } = require("./binaryToImage");binaryToImage("1001", 2, 2, "output.jpg", 32);