mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
fix(server): correct rotation for common files (#14092)
* fix(server): correct rotation for common files * fix: test: * pr feedback
This commit is contained in:
parent
dfa8a8a6e1
commit
2f9019c0e1
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ export class MediaService extends BaseService {
|
||||||
const colorspace = this.isSRGB(asset) ? Colorspace.SRGB : image.colorspace;
|
const colorspace = this.isSRGB(asset) ? Colorspace.SRGB : image.colorspace;
|
||||||
const processInvalidImages = process.env.IMMICH_PROCESS_INVALID_IMAGES === 'true';
|
const processInvalidImages = process.env.IMMICH_PROCESS_INVALID_IMAGES === 'true';
|
||||||
|
|
||||||
const orientation = Number(asset.exifInfo?.orientation) || undefined;
|
const orientation = useExtracted && asset.exifInfo?.orientation ? Number(asset.exifInfo.orientation) : undefined;
|
||||||
const decodeOptions = { colorspace, processInvalidImages, size: image.preview.size, orientation };
|
const decodeOptions = { colorspace, processInvalidImages, size: image.preview.size, orientation };
|
||||||
const { data, info } = await this.mediaRepository.decodeImage(inputPath, decodeOptions);
|
const { data, info } = await this.mediaRepository.decodeImage(inputPath, decodeOptions);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue