Pictures from Phone

PB Forum :: Trailforks Feedback
Pictures from Phone
  • Previous Page
  • Next Page
Author Message
O+ FL
Posted: Oct 15, 2019 at 8:18 Quote
Whenever I upload pictures from my phone, they almost always upload rotated 90 degrees.

Is there a way to stop that or to flip it, after its uploaded? Without rotating them on my phone first...

For example... https://www.trailforks.com/photo/17871573/

Mod O+ FL
Posted: Oct 16, 2019 at 11:14 Quote
Yah I don't know why this happens for some people. I have a Pixel 2 and an iPhone SE and both work fine for me.

What phone do you have? And what camera app are you using to take the photos?

O+ FL
Posted: Oct 16, 2019 at 11:59 Quote
I have a Samsung S8 and am using the built in/default Camera app.

I just did a test uploading to PB and it seems to be only the portrait pictures that flip around. Something shot in landscape was normal.

O+
Posted: Oct 16, 2019 at 13:04 Quote
Could be due to the EXIF Orientation data saved for the image from the device/camera. You can check via http://exifdata.com/

Mod O+ FL
Posted: Oct 16, 2019 at 15:56 Quote
What happens if you take the photo within the actual Trailforks app and upload it?

O+ FL
Posted: Oct 16, 2019 at 16:16 Quote
It shows correctly when taken with the actual app.

Mod O+ FL
Posted: Oct 16, 2019 at 16:24 Quote
Email me the original photo of this https://www.pinkbike.com/photo/17871573/ from your phone.
trevor@pinkbike.com

Mod O+ FL
Posted: Oct 16, 2019 at 19:31 Quote
Yah the image loads fine on my Windows PC. Copied to my Pixel2 Phone and displays fine in the Google Photos app. But if I use the photoChooser in the Trailforks app, its rotated to landscape.

Your photo pixel width is in landscape, but it has a exif meta property for "Orientation Rotate 90 CW".
So windows and Google Photos both must read this and auto-rotate the photo.

The annoying this is most phones, including my Pixel2, when you shoot in portrait, then save the actual photo pixel width and height in portrait and have no Orientation exif metadata.

I'll see if I can add some code to rotate the photo if that metadata exists.

  • Previous Page
  • Next Page

 


Copyright © 2000 - 2024. Pinkbike.com. All rights reserved.
dv65 0.009959
Mobile Version of Website