Documents Self-Rotating

When things doesn't work as they should.
Post Reply
jayfiro
Posts: 2
Joined: Wed Oct 31, 2018 10:15 pm

Documents Self-Rotating

Post by jayfiro » Wed Oct 31, 2018 10:33 pm

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!

User avatar
rosarior
Posts: 159
Joined: Tue Aug 21, 2018 3:28 am

Re: Documents Self-Rotating

Post by rosarior » Thu Nov 01, 2018 12:44 am

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.

jayfiro
Posts: 2
Joined: Wed Oct 31, 2018 10:15 pm

Re: Documents Self-Rotating

Post by jayfiro » Thu Nov 01, 2018 4:24 am

Thanks a lot for the info! I’ll follow it on GitLab.

Post Reply