mirror of
https://github.com/tiennm99/rplace.git
synced 2026-10-11 03:13:48 +00:00
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:
1 parent
a0c32b18ee
commit
1565776f02
5 files changed
+334
No files matched your search
Generated
+1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user