Add Immich bulk upload script and package files

Add upload.js: a CommonJS Node script to bulk upload files to Immich with optional image compression and album support. Also add package.json and package-lock.json listing dependencies (@immich/sdk, sharp, dotenv, mime-types, colors). The script uses env vars (API_KEY, BASE_URL, UPLOAD_DIR, COMPRESSION, DO_ALBUMS, etc.) to control behavior.
This commit is contained in:
2026-08-10 18:48:57 +02:00
parent 818aaab6b0
commit f57792e192
3 changed files with 938 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
{
"name": "immichbulkupload",
"version": "0.0.1-alpha",
"description": "a simple a script to bulk upload files to Immich",
"repository": {
"type": "git",
"url": "https://gitea.azures.fr/azures04/ImmichBulkUpload"
},
"license": "MIT",
"author": {
"name": "azures04",
"email": "gilleslazure04@gmail.com",
"url": "https://gitea.azures.fr"
},
"type": "commonjs",
"main": "upload.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@immich/sdk": "^3.1.0",
"colors": "^1.4.0",
"dotenv": "^17.4.2",
"mime-types": "^3.0.2",
"sharp": "^0.35.3"
}
}