Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
8

8bit

> 包管理
Open source

Transform images into pixelated artwork

99 stars0 likes2 views
WebsiteGitHub

About

Transform images into pixelated artwork

8Bit |

8Bit is a javascript module that converts an image into a pixelated version using canvas.

You can find a demo here.

Install

NPM

bash
npm install 8bit

Bower

bower install 8bit

Direct file link

Usage

javascript
var eightBit = require('8bit'); // only needed for NPM installs

var img = new Image();
img.onload = function () {
    eightBit(document.getElementById('mycanvas'), img, 10);
};
img.src = 'http://foobar.com/your_image.png';

API

  • eightBit(canvas, image, scaleFactor)
    • canvas - canvas element that will be used to place the pixelated version of the image
    • image - image HTMLElement to pixelate
    • scaleFactor - Number between 0 and 100, lower is more pixelated.

License

MIT (see LICENSE file)

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScript8bitimagenpmpixel

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image