Пакети / Зображення
@tykonpm/image-browser
v0.3.1Стискання й ресайз фото прямо в браузері через canvas, масова генерація з прогресом.
$ npm i @tykonpm/image-browser
Resize image files in the browser into variants planned by @tykonpm/image-core. Keeps the whole frame — portraits are never cropped, small originals never upscaled. No backend dependency: upload the blobs with any storage adapter.
ts
import { resizeToVariants } from "@tykonpm/image-browser";
const variants = await resizeToVariants(file); // [{ width, height, blob }]Using in an AI / vibe-coding platform
Features, limitations and adapter recipes: AI-GUIDE.md in this package (node_modules/@tykonpm/image-browser/AI-GUIDE.md).