markus-wa/stickerify
markus-wa/stickerify has 36 GitHub stars and 4 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-25 02:48 UTC. Last push 2023-07-19.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Add sticker-like border effect to transparent images (JavaScript / TypeScript)
창작 및 미디어README.md
Originalstickerify
Add sticker-like border effect to images with transparency
Input:

Output:

Live Demo
Check out this codepen demo: https://codepen.io/markus-wa/pen/eYEMvxd - thanks to @pento for letting me steal this!
Install
yarn add stickerify
or
npm install stickerify
Sample code
Stickerify can run in a web browser, or in a Node.js environment. For Node.js, you should use the canvas module for image loading, as this is what Stickerify uses internally for image processing.
HTML
<img id="out" />
const img = new Image(),
out = document.getElementById('out');
img.crossOrigin = 'anonymous';
img.onload = () => {
out.src = stickerify(img, 3, 'white').toDataURL();
};
img.src = 'https://raw.githubusercontent.com/markus-wa/stickerify/main/example/input.png';
When run in the browser, stickerify() returns a HTML5 canvas element.
Node.js
const { stickerify } = require('stickerify');
const { loadImage } = require('canvas');
const { writeFile } = require('fs');
loadImage('https://raw.githubusercontent.com/markus-wa/stickerify/main/example/input.png')
.then((image) => stickerify(image, 3, 'white'))
.then((image) => stickerify(image, 1, 'grey'))
.then((canvas) => writeFile('output.png', canvas.toBuffer(), (err) => console.log(err || 'done')));
When run in Node.js, stickerify() returns a Canvas object.
관련 프로젝트 살펴보기
불러오는 중…