datumaro
datumaro copied to clipboard
EXIF data like orientation is ignored
Describe the bug
I am trying to load a dataset and some images have EXIF metadata, especially rotation. When I load them using datumaro the rotation appears to be unused.
Steps to Reproduce
- Set the EXIF rotation of an image to something else than default
- Try to read the file. The size will be off as well as any bounding boxes
Environment:
- OS: Win11
- Datumaro version: 1.10.0
- Python version: 3.11.12
Cause
https://github.com/open-edge-platform/datumaro/blob/a0d7cc776ad9063f01f4bd8671a3ec45e948da5e/src/datumaro/components/media.py#L338-L349
Relates to https://github.com/shibukawa/imagesize_py/issues/49