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:
parent
5f1f4c5f81
commit
dcf2ce38e3
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue