Do not rotate photo at capture time #780
gmaclennan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently we use the device orientation to rotate photos when we capture them. This causes memory issues on low-end devices. It is more efficient to capture and save the photo at the original orientation and rotate the photos when displaying them in the app and when exporting the photos, because in most cases we display / export reduced resolution copies.
To do this we would need to record rotation information along with each attachment. We could record this as an array of edit actions for each photo in the
attachments
property, e.g.We would need to update both Mapeo Mobile and Mapeo Desktop to read these values and apply them when displaying the photos. It would be backwards compatible because existing photos are already rotated and do not need any rotation applied at run-time.
This allows us to store photos "as captured" and apply edits without actually mutating the original photo record. This would be useful for notarizing photos as discussed in #292
Beta Was this translation helpful? Give feedback.
All reactions