1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-04 02:46:47 +01:00

fix: don't return fullsizePath when disabled

This commit is contained in:
Eli Gao 2024-12-24 00:42:45 +08:00
parent 5f1f4c5f81
commit dcf2ce38e3

View file

@ -247,11 +247,12 @@ export class MediaService extends BaseService {
let useExtracted = false;
let decodeInputPath: string = asset.originalPath;
// Converted or extracted image from non-web-supported formats (e.g. RAW)
let fullsizePath: string = StorageCore.getImagePath(asset, AssetPathType.FULLSIZE, image.preview.format);
let fullsizePath: string | undefined;
if (shouldConvertFullsize) {
// unset size to decode fullsize image
decodeOptions.size = undefined;
fullsizePath = StorageCore.getImagePath(asset, AssetPathType.FULLSIZE, image.preview.format);
}
if (shouldExtractEmbedded) {