High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(server): correct rotation for common files (#14092)
Alex2f9019c0e1bd
diff --git a/server/src/services/media.service.ts b/server/src/services/media.service.tsindex c7b3dbced1..0aa6bd03fb 100644--- a/server/src/services/media.service.ts+++ b/server/src/services/media.service.ts@@ -214,7 +214,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 = 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 { data, info } = await this.mediaRepository.decodeImage(inputPath, decodeOptions);