mirror of
https://github.com/immich-app/immich.git
synced 2025-02-18 01:24:26 -05:00
feat(server): allow orientation change via sidecar
This commit is contained in:
parent
70809c1465
commit
22bd476807
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ export class MediaService extends BaseService {
|
|||
const colorspace = this.isSRGB(asset) ? Colorspace.SRGB : image.colorspace;
|
||||
const processInvalidImages = process.env.IMMICH_PROCESS_INVALID_IMAGES === 'true';
|
||||
|
||||
const orientation = useExtracted && asset.exifInfo?.orientation ? Number(asset.exifInfo.orientation) : undefined;
|
||||
const orientation = asset.exifInfo?.orientation ? Number(asset.exifInfo.orientation) : undefined;
|
||||
const decodeOptions = { colorspace, processInvalidImages, size: image.preview.size, orientation };
|
||||
const { data, info } = await this.mediaRepository.decodeImage(inputPath, decodeOptions);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue