Skip to content

Photos in POIs not properly oriented #932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
valleyofdawn opened this issue Jan 23, 2019 · 17 comments
Closed

Photos in POIs not properly oriented #932

valleyofdawn opened this issue Jan 23, 2019 · 17 comments
Labels
App Native application related issues bug Medium Should be added/fixed in the future

Comments

@valleyofdawn
Copy link

valleyofdawn commented Jan 23, 2019

Bug

What I expect to happen

When I take a picture for a private POI I expect it to appear properly oriented

What really happened

They appear up-side-down or sideways, depending on how I took the picture

What I did that caused the issue - step by step

Manually added a POI.
Took a picture
Approved it
Looked at the orientation

My environment

App on android

Thing I think the developers should know, images, links etc.

image

@valleyofdawn valleyofdawn added bug Medium Should be added/fixed in the future App Native application related issues labels Jan 23, 2019
@HarelM
Copy link
Member

HarelM commented Jan 23, 2019

I'm unable to reproduce it on my device.
Also, I did not change the code that resize and rotates the image.
Please see if this happens also in mobile site, both beta and non beta.
Chances are that your picture has an incorrect orientation value.

@valleyofdawn
Copy link
Author

It doesn't happen on the mobile site.
The images have the correct orientation when viewed in the gallery.
Samsung note 9.

@HarelM
Copy link
Member

HarelM commented Jan 24, 2019

Can you try and see if you can open the site with the phone's default browser (probably Samsung internet) and see if this issue happens there?
I have no clue what can cause this, maybe I can create a debug version for you to test it with. I'll see what I can do...

@valleyofdawn
Copy link
Author

Looks OK in the default browser as well.

@HarelM
Copy link
Member

HarelM commented Jan 24, 2019

@valleyofdawn please try and install the version that will be created in the following build:
https://ci.appveyor.com/project/IsraelHikingHost/site/builds/21870824/job/23bnsfda4u9miqa0
It should popup messages when importing the image to private POI.
The most important message is the "orientation before ...", let me know once you test it what are the popup saying.

@HarelM
Copy link
Member

HarelM commented Jan 28, 2019

@valleyofdawn any updates on this?

@HarelM
Copy link
Member

HarelM commented Feb 5, 2019

@valleyofdawn still waiting for your input on this...

@valleyofdawn
Copy link
Author

Orientation before undefined

@HarelM
Copy link
Member

HarelM commented Feb 5, 2019

Is this the only message you are getting? Should be around 3...
Also, if this is the case, no wonder the site doesn't change orientation.
Can you upload the image to this thread as well?

@valleyofdawn
Copy link
Author

1 resizing image and fixing orientation
2 uploading image
3 Orientation before undefined
img_20190205_233435

@valleyofdawn
Copy link
Author

Interestingly, when shown on google photos it is correctly oriented. unlike above.

@HarelM
Copy link
Member

HarelM commented Feb 6, 2019

OK, I'm able to reproduce the issue with the above image using my android app (doesn't reproduce on my desktop though).
There's also a strange behavior that the camera icon is begin pressed when adding a private POI, I'll look into it as well...

@HarelM
Copy link
Member

HarelM commented Feb 6, 2019

I have opened a separate bug related to camera icon behavior in the dialog: #956

@HarelM
Copy link
Member

HarelM commented Feb 6, 2019

I have no clue what to do here...
The info is there, I'm just not getting it when the code runs inside the cordova app...
hMatoba/piexifjs#60
I hope @hMatoba might be able to help...

@HarelM
Copy link
Member

HarelM commented Feb 8, 2019

I have also tried using another exif library: exif-js but I get the same results - when using desktop version the file has all the relevant data and when using the same library in cordova app, there's no data returned from the image...
This is very strange... Not sure what to do here...

@zstadler
Copy link
Member

According to #238, the issue applies to public POIs too

@zstadler zstadler changed the title Photos in private POIs not properly oriented Photos in POIs not properly oriented Apr 15, 2019
@HarelM
Copy link
Member

HarelM commented May 8, 2019

It seems that this issue is related to the camera plugin used by the app to get photos from the photos library.
The relevant issue is this one:
apache/cordova-plugin-camera#329
Although seems to be closed I still see the issue occur when using the version from the repository and not from npm.
Fortunately, exif data is not so important when selecting an image for private or public POI and the above issue has allowed me to find a workaround :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Native application related issues bug Medium Should be added/fixed in the future
Projects
None yet
Development

No branches or pull requests

3 participants