ironfelix717
Registered User.
- Local time
- Yesterday, 19:57
- Joined
- Sep 20, 2019
- Messages
- 193
Hi all,
An app I have built and use frequently uses a lot of photos (of varying dimensions). The source of the photos is usually a cell camera. The problem is, the photos are displayed in the control with the incorrect orientation. If the photo was taken "side-ways" (landscape) with the cell phone, the photo is displayed correctly. If the photo was taken as a regular portrait ("vertical"), then the photo is always incorrectly displayed (90 degrees out).
Windows explorer serves these photos in the correct orientation when viewing them. Likewise on any other device.
How I have remedied this is with a Python script I wrote which orients the Image's EXIF data 90 degrees (Viewing the exact file in Windows after this script is ran displays the photo the same. However, Access image control serves it correctly now (90 degree). So it works, but naturally, its slow as hell and I need a faster solution.
So,
I am looking for a way to read the EXIF image orientation in VBA during upload and automatically rotate it. All in VBA, so its fast and native.
Thanks!
An app I have built and use frequently uses a lot of photos (of varying dimensions). The source of the photos is usually a cell camera. The problem is, the photos are displayed in the control with the incorrect orientation. If the photo was taken "side-ways" (landscape) with the cell phone, the photo is displayed correctly. If the photo was taken as a regular portrait ("vertical"), then the photo is always incorrectly displayed (90 degrees out).
Windows explorer serves these photos in the correct orientation when viewing them. Likewise on any other device.
How I have remedied this is with a Python script I wrote which orients the Image's EXIF data 90 degrees (Viewing the exact file in Windows after this script is ran displays the photo the same. However, Access image control serves it correctly now (90 degree). So it works, but naturally, its slow as hell and I need a faster solution.
So,
I am looking for a way to read the EXIF image orientation in VBA during upload and automatically rotate it. All in VBA, so its fast and native.
Thanks!