Locus Map - forum

Support => Wishlist => Topic started by: balloni55 on October 22, 2013, 14:11:01

Title: POI picture portrait/landscape
Post by: balloni55 on October 22, 2013, 14:11:01
Hi menion,
in geman board i had a question about the orientation of POI-Pictures (attachement)
http://forum.locusmap.eu/index.php?topic=3461.0 (http://forum.locusmap.eu/index.php?topic=3461.0)
The most Camera-apps set the Exif orientation of a portrait picture to landscape, see:
http://developer.android.com/training/camera/cameradirect.html (http://developer.android.com/training/camera/cameradirect.html) "Set the preview orientation"
i am not a developer, but i think if you could implement this:
http://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation%28int%29 (http://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation%28int%29)
it doesnt matter what cameraapp is used.
During my tests i have noticed, that the stored picture in "locus/data/photo_poi" is not deleted when i delete the poi.
Title: Re: POI picture portrait/landscape
Post by: Menion on October 23, 2013, 14:56:14
thanks for links to developer docs ;) anyway in this case, they're useless. "Camera" class is object used for handling with camera itself etc. but it's something that do not do locus. On Locus side, is need to read information from EXIF tags and rotate image if needed.

This should be now fixed, anyway all images I have for testing are correctly rotated. May you, or anyone other, share some image that is incorrectly rotated in Locus? Thanks
Title: Re: POI picture portrait/landscape
Post by: balloni55 on October 23, 2013, 21:47:25
Hello menion,
here i have a picture i take in portrait mode, it is diplayed in Irfanview, FF-Browser and Dropbox in portrait, but the exif orientation is "right top"
(http://s23.postimg.org/wog3vumvr/Locus.jpg) (http://postimg.org/image/wog3vumvr/)
You can download it
https://www.dropbox.com/s/q0dzw7uoj6fiqe5/Locus.jpg
open with e.g. irfanview it is displayed portrait, but the exif orientation is "right top" and if you put it to a POI it is displayed landscape

Title: Re: POI picture portrait/landscape
Post by: Menion on October 23, 2013, 22:29:46
thanks ...

I'm little bit confused now. Almost all my images has "orientation: right top" - code 1. Seems not to be clear that this images should be rotated. Also check here http://www.impulseadventure.com/photo/exif-orientation.html . XnView display this image as I wrote - "top left (1)" which means no orientation - any idea?


(http://s17.postimg.org/aepscgbm3/2013_10_23_22_27_42_Xn_View_Locus.jpg) (http://postimg.org/image/aepscgbm3/)
Title: Re: POI picture portrait/landscape
Post by: balloni55 on October 24, 2013, 09:44:20
it is confusing, indeed ::)
if i download the picture from dropbox with "right click, download original" the exif  orientation is not changed! (Locus.jpg)
If i open this "locus.jpg" with XNView, it seems that XNView change the Orientation while opening (your Screenshot) and saveing, see "LocusXN.jpg"

(http://s10.postimg.org/b4ohe3zj9/Vergleich.jpg) (http://postimg.org/image/b4ohe3zj9/)

Displayed orientation with Irfanview depends on "Irfan settings",  irfan do not change exifdata!


(http://s14.postimg.org/61idmwb4t/drehen.jpg) (http://postimg.org/image/61idmwb4t/)
Title: Re: POI picture portrait/landscape
Post by: Menion on October 24, 2013, 12:33:56
hmm thank you, this helps a lot

so, seems to be fixed now. We'll see in next version ;). I've did it in a way, that locus do not modify image itself! On all places, I just rotate images to correct orientation. I'm sure, it's a correct way ...