0.1.4 • Published 4 years ago

pixelit v0.1.4

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

pixelit

Convert image to pixel art based on equidistant sampling method.

Example

🖼️ Source image

🖨️ After processed

Getting started

Install

npm i pixelit

How to use

const pixelit = require('pixelit');

// Output to .svg file
pixelit('/file/path/raw-image.jpg', { pixel: 20, x: 40, y: 40 }, { path: '/output/path/for/image.svg' })
    .then(doSomething)
    .catch(errorHandler);

// Get HTML for the <svg> element
pixelit('/file/path/raw-image.jpg', { pixel: 20, x: 40, y: 40 }, { html: true })
    .then(html => doSth(html))
    .catch(errorHandler);
0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago