All Projects → miguelmota → Pixelate

miguelmota / Pixelate

Licence: mit
Pixelate an image with canvas.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Pixelate

Fabric Photo
基于canvas的前端图片编辑器
Stars: ✭ 132 (+69.23%)
Mutual labels:  image, canvas
Localresizeimg
🔥 前端本地客户端压缩图片,兼容IOS,Android,PC、自动按需加载文件
Stars: ✭ 3,135 (+3919.23%)
Mutual labels:  image, canvas
Filterous 2
Instagram-like photo manipulation library for Node.js and Javascript on browser
Stars: ✭ 163 (+108.97%)
Mutual labels:  image, canvas
Compress.js
A simple JavaScript based client-side image compression algorithm
Stars: ✭ 86 (+10.26%)
Mutual labels:  image, canvas
Jspaint
🎨 Classic MS Paint, REVIVED + ✨Extras
Stars: ✭ 5,972 (+7556.41%)
Mutual labels:  image, canvas
Picasso
Picasso is a high quality 2D vector graphic rendering library. It support path , matrix , gradient , pattern , image and truetype font.
Stars: ✭ 205 (+162.82%)
Mutual labels:  image, canvas
Fediagram
图说前端>>收集各种前端技术图谱 🚕🚖🚗🚚🚛🚜
Stars: ✭ 273 (+250%)
Mutual labels:  image, canvas
Tui.image Editor
🍞🎨 Full-featured photo image editor using canvas. It is really easy, and it comes with great filters.
Stars: ✭ 4,761 (+6003.85%)
Mutual labels:  image, canvas
Html To Image
✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
Stars: ✭ 595 (+662.82%)
Mutual labels:  image, canvas
Gaussianblur
An easy and fast library to apply gaussian blur filter on any images. 🎩
Stars: ✭ 473 (+506.41%)
Mutual labels:  image, canvas
Instagrid Js
A Javascript library to do exactly what Instagram Layout application does
Stars: ✭ 13 (-83.33%)
Mutual labels:  image, canvas
Blurify
blurify.js is a tiny(~2kb) library to blurred pictures, support graceful downgrade from `css` mode to `canvas` mode.
Stars: ✭ 665 (+752.56%)
Mutual labels:  image, canvas
Color.js
Extract colors from an image (0.75 KB) 🎨
Stars: ✭ 42 (-46.15%)
Mutual labels:  image, canvas
React Ape
🦍• [Work in Progress] React Renderer to build UI interfaces using canvas/WebGL
Stars: ✭ 1,183 (+1416.67%)
Mutual labels:  canvas
Network Avatar Picker
A npm module that returns user's social network avatar. Supported providers: facebook, instagram, twitter, tumblr, vimeo, github, youtube and gmail
Stars: ✭ 74 (-5.13%)
Mutual labels:  image
Goscraper
Golang pkg to quickly return a preview of a webpage (title/description/images)
Stars: ✭ 72 (-7.69%)
Mutual labels:  image
Php Fpm
Docker container to install and run PHP-FPM
Stars: ✭ 71 (-8.97%)
Mutual labels:  image
Ditherjs
A javascript library which dithers an <img> using a fixed palette
Stars: ✭ 76 (-2.56%)
Mutual labels:  canvas
Shadertoy React
6kB "Shadertoy" like react component letting you easily render your fragment shaders in your React web projects, without having to worry about implementing the WebGL part.
Stars: ✭ 74 (-5.13%)
Mutual labels:  canvas
Skrop
Image transformation service using libvips, based on Skipper.
Stars: ✭ 71 (-8.97%)
Mutual labels:  image

Pixelate

Pixelates an image with canvas by scaling the image down and stretching. The original image src is replaced with the canvas image dataURL.

Demo

https://lab.miguelmota.com/pixelate

Install

npm install pixelate

Usage

Basic example:

var image = document.querySelector('.image');
var pixelate = new Pixelate(image, {
  amount: 0.7, // default: 0, pixelation percentage amount (range from 0 to 1)
});

Another example:

var image = new Image();
image.src = 'images/street.jpeg';

var pixelate = new Pixelate(image, {amount: 0.7});

Re-render with different amount:

pixelate.setAmount(0.5).render();

Make it responsive:

window.onresize = function() {
  pixelate.setWidth(image.parentNode.clientWidth).render();
};

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].