Revert default for downloadOriginalPhoto

This commit is contained in:
Alan Grainger 2024-11-12 18:44:05 +01:00
parent c002942068
commit 13d3a8e890
3 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
}, },
"singleImageGallery": false, "singleImageGallery": false,
"singleItemAutoOpen": true, "singleItemAutoOpen": true,
"downloadOriginalPhoto": false "downloadOriginalPhoto": true
}, },
"lightGallery": { "lightGallery": {
"controls": true, "controls": true,

View File

@ -79,7 +79,7 @@ app.get('/healthcheck', async (_req, res) => {
if (await immich.accessible()) { if (await immich.accessible()) {
res.send('ok') res.send('ok')
} else { } else {
res.status(502).send() res.status(503).send()
} }
}) })

View File

@ -22,7 +22,7 @@ class Render {
subpath = '/video/playback' subpath = '/video/playback'
} else if (asset.type === AssetType.image) { } else if (asset.type === AssetType.image) {
// For images, there are three combinations of path + query string, depending on image size // 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' subpath = '/original'
} else if (size === ImageSize.preview || size === ImageSize.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 // IPP is configured in config.json to send the preview size instead of the original size
@ -96,7 +96,7 @@ class Render {
controls: true 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 // 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) downloadUrl = immich.photoUrl(share.key, asset.id, ImageSize.original, asset.password)
} }