POI picture portrait/landscape

Started by balloni55, October 22, 2013, 14:11:01

0 Members and 1 Guest are viewing this topic.

balloni55

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
The most Camera-apps set the Exif orientation of a portrait picture to landscape, see:
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
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.
Locus Map 4.24.3 Gold AFA

LM4 User ID e06d572d4
  •  

Menion

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
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

balloni55

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"

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

Locus Map 4.24.3 Gold AFA

LM4 User ID e06d572d4
  •  

Menion

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?



- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

balloni55

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"



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



Locus Map 4.24.3 Gold AFA

LM4 User ID e06d572d4
  •  

Menion

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 ...
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •