Author Topic: POI picture portrait/landscape  (Read 1874 times)

Offline balloni55

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 2521
  • Thanked: 100 times
    • View Profile
  • Device: Motorola G3 MM 6.01
POI picture portrait/landscape
« 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
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 PRO 3.40.2
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11436
  • Thanked: 317 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: POI picture portrait/landscape
« Reply #1 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
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline balloni55

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 2521
  • Thanked: 100 times
    • View Profile
  • Device: Motorola G3 MM 6.01
Re: POI picture portrait/landscape
« Reply #2 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"

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 PRO 3.40.2
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11436
  • Thanked: 317 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: POI picture portrait/landscape
« Reply #3 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?



Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline balloni55

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 2521
  • Thanked: 100 times
    • View Profile
  • Device: Motorola G3 MM 6.01
Re: POI picture portrait/landscape
« Reply #4 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"



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



Locus PRO 3.40.2
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11436
  • Thanked: 317 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: POI picture portrait/landscape
« Reply #5 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 ...
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!