Images being rotated 90 deg on Android mobile devices
Closed this issue · 1 comments
GetOrders commented
Describe the bug
Images are being rotated 90 degrees on Android mobile devices when uploaded to the server, this may also be happening on Apple devices, desktop works fine. I appreciate the component otherwise but it cannot be used in production.
To Reproduce
Steps to reproduce the behavior:
- Implement as instructions and test on mobile
Expected behavior
Images in their original rotation (0 Deg)
Smartphone
- Device: Samsung Galaxy S20+, Samsung Galaxy s21 FE
- Chrome
GetOrders commented
Update: found this issue to actually be occuring due to Sharp (NodeJS) library removing the metadata. I spent hours trying to rotate the image orientation using exif-js but in the end it turned out the server side was causing this issue.