Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 348 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 348 Bytes

blockify

Replaces pixels in an image with Minecraft blocks!

Usage

// {image} can be a buffer, url to file, or image url
await blockify(image)

// returns an image buffer

Example

const blockify = require('blockify');
const fs = require('fs');

fs.writeFileSync('exampleBlockified.png', await blockify('./example.png'));