When uploading a picture of a document taken with iPhone in portrait mode, the document is self-rotating to landscape mode. This is causing a problem with OCR and we are having to manually transform the document.
Please see Dropbox link to original picture that was taken with iPhone X in portrait mode.
https://www.dropbox.com/s/yo4634isosara ... n.JPG?dl=0
We are using Mayan EDMS 3.1.7 with Docker installation.
Also, please see the following related post:
http://mayan-edms.1003.x6.nabble.com/Ma ... 02954.html.
Any suggestions? Thanks!
Documents Self-Rotating
Re: Documents Self-Rotating
The links you mention do auto rotation for PDF files. This feature is still available but has been changed to default to disabled because PDF orintation is not a very well documented feature and there many reports of false positives. Image orientation is different and is encoded in the EXIF field of an image. We are in the process of adding the Mayan EXIF app into the core of main apps (https://gitlab.com/mayan-edms/exif). This app is able to access the EXIF record and is used for indexing but this can be expanded to detect the orientation as reported by the image. This merge is still in very early stages and it is not certain if it will land on in time for version 3.2. I've added orientation detection as a related feature for this merge.
Re: Documents Self-Rotating
Thanks a lot for the info! I’ll follow it on GitLab.