fix: create face exif orientation handling (#26108)

* fix: handle exif orientation when creating face

* chore: tests
This commit is contained in:
Brandon Wees
2026-02-10 10:30:34 -06:00
committed by GitHub
parent 32dea76a92
commit 0886281dd8
2 changed files with 73 additions and 2 deletions

View File

@@ -677,8 +677,9 @@ export class PersonService extends BaseService {
};
// now coordinates are in original image space
dto.imageHeight = asset.exifInfo.exifImageHeight;
dto.imageWidth = asset.exifInfo.exifImageWidth;
const originalDimensions = getDimensions(asset.exifInfo);
dto.imageWidth = originalDimensions.width;
dto.imageHeight = originalDimensions.height;
}
await this.personRepository.createAssetFace({