Generated Computers
Locals는 Apple Silicon 엔진으로 로컬 LLM을 최대 3배 빠르게 실행하는 Generated Computers 제품
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Library that adds a sticker effect to images with transparent backgrounds.
Tested with .png, .webp and .jpg.
It uses HTML Canvas, so it only works in the browser (and not in Node.js).
<script src="https://unpkg.com/@devadri/create-sticker@1/bundle.iife.js"></script>
npm install @devadri/create-sticker
<script src="https://unpkg.com/@devadri/create-sticker@1/bundle.iife.js"></script>
<script>
async function modifyImage(img) {
const options = {
strokeWidth: 20,
strokeColor: "black",
fillHoles: true
}
const stickerImgSrc = await CreateSticker.createSticker(img.src, options);
img.src = stickerImgSrc;
}
</script>
import { createSticker, CreateStickerOptions } from '@devadri/create-sticker';
async function modifyImage(img) {
const options: CreateStickerOptions = {
strokeWidth: 20,
strokeColor: "black",
fillHoles: true
}
const stickerImgSrc = await createSticker(img.src, options);
img.src = stickerImgSrc;
}
| Function | Returns |
|---|---|
createSticker(image, options?) | Promise<string>: data URL |
createStickerBlob(image, options?) | Promise<Blob> |
createStickerCanvas(image, options?) | Promise<HTMLCanvasElement> |
image can be an image URL, a Blob/File, an HTMLImageElement, an HTMLCanvasElement, an OffscreenCanvas or an ImageBitmap.
All options are optional.
| Option | Default | Description |
|---|---|---|
strokeWidth | 20 | Stroke width in pixels. |
strokeColor | "white" | Stroke color (any CSS color). |
fillHoles | true | Fill transparent holes with the stroke color. |
strokeHoles | false | When fillHoles is false, also add the stroke around holes. |
outlines | [] | Extra outlines around the stroke, e.g. [{ width: 3, color: "#999" }]. |
shadow | false | Drop shadow. true or { color, blur, offsetX, offsetY }. |
padding | strokeWidth / 2 | Transparent space added around the image, in pixels. |
trim | false | Crop the result to its visible content. |
maxSize | none | Scale down images larger than this (in pixels) before processing. |
alphaThreshold | 0 | Ignore pixels with alpha (0-255) at or below this value when finding outlines. |
crossOrigin | "anonymous" | CORS mode for image URLs. Remote images must allow CORS. |
outputType | "image/png" | Output format, e.g. "image/webp". |
outputQuality | 1 | Quality (0 to 1) for lossy formats. |
The original code comes from this Stack Overflow answer by markE. Adrián Bueno took that code, rewrote it in TypeScript and prepared it for publishing. The latest improvements were made with Claude Code.