From 13d3a8e8905206cbb10a63290186d30f0abab811 Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Tue, 12 Nov 2024 18:44:05 +0100 Subject: [PATCH] Revert default for downloadOriginalPhoto --- app/config.json | 2 +- app/src/index.ts | 2 +- app/src/render.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/config.json b/app/config.json index 24696fb..5245516 100644 --- a/app/config.json +++ b/app/config.json @@ -5,7 +5,7 @@ }, "singleImageGallery": false, "singleItemAutoOpen": true, - "downloadOriginalPhoto": false + "downloadOriginalPhoto": true }, "lightGallery": { "controls": true, diff --git a/app/src/index.ts b/app/src/index.ts index 1122b95..04290e7 100644 --- a/app/src/index.ts +++ b/app/src/index.ts @@ -79,7 +79,7 @@ app.get('/healthcheck', async (_req, res) => { if (await immich.accessible()) { res.send('ok') } else { - res.status(502).send() + res.status(503).send() } }) diff --git a/app/src/render.ts b/app/src/render.ts index e1a0549..78433f9 100644 --- a/app/src/render.ts +++ b/app/src/render.ts @@ -22,7 +22,7 @@ class Render { subpath = '/video/playback' } else if (asset.type === AssetType.image) { // For images, there are three combinations of path + query string, depending on image size - if (size === ImageSize.original && getConfigOption('ipp.downloadOriginalPhoto', false)) { + if (size === ImageSize.original && getConfigOption('ipp.downloadOriginalPhoto', true)) { subpath = '/original' } else if (size === ImageSize.preview || size === ImageSize.original) { // IPP is configured in config.json to send the preview size instead of the original size @@ -96,7 +96,7 @@ class Render { controls: true } }) - } else if (asset.type === AssetType.image && getConfigOption('ipp.downloadOriginalPhoto', false)) { + } else if (asset.type === AssetType.image && getConfigOption('ipp.downloadOriginalPhoto', true)) { // Add a download link for the original-size image, if configured in config.json downloadUrl = immich.photoUrl(share.key, asset.id, ImageSize.original, asset.password) }