You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Portrait Photos loaded into Dropzone remain in portrait orientation
Actual behavior
Photos taken with some phones, and loaded without resizing or compression, are loaded as landscape in the thumbnail, and also in the loaded file.
Examples include iPhone 6S (Apple) and Samsung A8 (android)
Workaround
Before loading a photo, resize or recompress it with tools like TinyPNG (website) or Lit Photo (android app).
This seems to lock the orientation.
Steps to reproduce the issue
Take a portrait photo with phone.
Do NOT modify the photo in any way, either by cropping, resize or recompression.
Upload photo directly from camera or from photos on phone filesystem into APEX Dropzone plugin.
Thumbnail loads in landscape orientation.
Result photo is also in landscape orientation.
Example photo attached.
APEX version (Oracle APEX 20.2 with Oracle DB XE 18c)
Used web server / version and platform (ORDS 20.3 on Cent OS 7)
Used web browser / version and platform (Chrome Version 91.0.4472.124 Windows)
Cause
The underlying project dropzone version is 5.5.0
This version has a bug in ExifRestore.restore that causes the rotation.
Quick Fix
One fix is to comment out the call to ExifRestore.restore.
A better solution is to update the underlying dropzone code to the latest dropzone version, which includes another fix to Exif, which I assume fixes the bug.
I will open a pull-request on this project with my Quick Fix.
The text was updated successfully, but these errors were encountered:
Expected behavior
Portrait Photos loaded into Dropzone remain in portrait orientation
Actual behavior
Photos taken with some phones, and loaded without resizing or compression, are loaded as landscape in the thumbnail, and also in the loaded file.
Examples include iPhone 6S (Apple) and Samsung A8 (android)
Workaround
Before loading a photo, resize or recompress it with tools like TinyPNG (website) or Lit Photo (android app).
This seems to lock the orientation.
Steps to reproduce the issue
Take a portrait photo with phone.
Do NOT modify the photo in any way, either by cropping, resize or recompression.
Upload photo directly from camera or from photos on phone filesystem into APEX Dropzone plugin.
Thumbnail loads in landscape orientation.
Result photo is also in landscape orientation.
Example photo attached.
APEX version (Oracle APEX 20.2 with Oracle DB XE 18c)
Used web server / version and platform (ORDS 20.3 on Cent OS 7)
Used web browser / version and platform (Chrome Version 91.0.4472.124 Windows)
Cause
The underlying project dropzone version is 5.5.0
This version has a bug in ExifRestore.restore that causes the rotation.
Quick Fix
One fix is to comment out the call to ExifRestore.restore.
A better solution is to update the underlying dropzone code to the latest dropzone version, which includes another fix to Exif, which I assume fixes the bug.
I will open a pull-request on this project with my Quick Fix.
The text was updated successfully, but these errors were encountered: