feat: generate thumbhash for assets

This commit is contained in:
Menci
2025-11-17 02:52:00 +08:00
parent 96cfc41f7a
commit a956db4650
13 changed files with 429 additions and 44 deletions
+4 -1
View File
@@ -3,7 +3,8 @@
"version": "1.0.0",
"type": "module",
"scripts": {
"start": "bun src/index.ts",
"start": "bun src/index.ts metadata",
"start:thumb": "bun src/index.ts thumb",
"typecheck": "tsc",
"lint": "eslint --cache --ext .",
"lint:fix": "eslint --cache --ext . --fix"
@@ -25,12 +26,14 @@
},
"dependencies": {
"@guiiai/logg": "^1.2.5",
"@napi-rs/canvas": "^0.1.82",
"@types/js-yaml": "^4.0.9",
"@types/node": "^24.10.0",
"bun": "^1.3.2",
"es-toolkit": "^1.41.0",
"fast-xml-parser": "^5.3.1",
"glob": "^11.0.3",
"thumbhash-node": "^0.1.3",
"tinypool": "^2.0.0",
"zod": "^4.1.12"
}