feat(scripts): add image-to-colors + upload-colors CLI scripts

Convert PNG/JPG/WebP to rplace palette JSON (nearest-color or Floyd-Steinberg
dither) and upload at a target (x, y) with client-side credit throttling and
429 backoff. Shared palette conversion lives in src/lib/image-to-palette.js so
the browser importer can reuse it.
This commit is contained in:
tiennm99 committed 2026-04-17 11:25:06 +07:00
1 parent a0c32b18ee
commit 1565776f02
5 files changed
+334

No files matched your search

+1
View File
@@ -12,6 +12,7 @@
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"ioredis": "^5.10.1",
"sharp": "^0.34.5",
"svelte": "^5.28.2",
"testcontainers": "^11.14.0",
"vite": "^6.3.2",