wordpress-mobile / WordPress-iOS

WordPress for iOS - Official repository
http://ios.wordpress.org/
GNU General Public License v2.0
3.7k stars 1.12k forks source link

Featured images uploaded from the app appear rotated correctly in the app but the rotation is wrong when viewed on the web #10891

Open ctarda opened 5 years ago

ctarda commented 5 years ago

Expected behavior

After publishing a post containing images uploaded from the app, those images should have the same orientation as the originals in the device's camera roll

Actual behavior

As described in this post: p4a5px-2kh-p2

I created a new blog post in the iOS app (11.4.1) and added a featured image from my Camera Roll. The image preview looked right in the featured image dialog and in the “Blog Posts” view. But when I looked at the resulting post on the site in a desktop browser, or in the “View” version of the post on mobile, the image was rotated incorrectly (90 degrees counter-clockwise).

Steps to reproduce the behavior

I haven't been able to reproduce this.

Tested on [device], iOS [version], WPiOS [version]

WPiOS 11.4.1

SiobhyB commented 5 years ago

We had a similar report to this in 1756115-zen.

The user has a self-hosted site. When they upload photos to their site via the app, their orientation is sometimes changed, with the images being rotated 90 degrees.

The user is on version 11.5 of the app.

Troubleshooting steps like disabling plugins haven't helped.

thehenrybyrd commented 5 years ago

Another similar report in 1912806-zen. They're using an iPhone 6s, iOS 12.1.4, WPiOS 12.0, also on a self-hosted site.

susanjanec commented 5 years ago

Another similar report in 13542158-hc

They're using an iPhone XR, iOS 12.3.1, WPiOS 12.6 on a WordPress.com hosted site.

designsimply commented 5 years ago

This came up in a P2 discussion on 2019-05-23. h/t @arcangelini

During this testing I have seen images with the true orientation in the Media library and not adjusting based on EXIF tag. This has been inconsistent though and I have not been able to really find why that was.

(internal reference: pbg9X-dHc-p2)

designsimply commented 5 years ago

This came up in a P2 discussion on 2019-07-25. h/t @madeincosmos

iPhone photos uploaded sideways on posts created in the WordPress mobile app on iPhone 7s.

(internal reference: p4k3M4-2Bk-p2#comment-2062, Atomic site)

designsimply commented 5 years ago

Noting this may be a problem with Core WordPress and/or Jetpack and not the iOS app, and we may need to wait for a fix for the reports at 14459-core and 313-wp-calypso respectively.

guarani commented 3 years ago

I then added featured images via Post Settings, taken with the Camera app from a variety of orientations (e.g. landscape-left, portrait-upside-down, etc), published each post and viewed the site, and all images had the correct orientation. I also tried taking photos from within the WordPress app (as opposed to using an existing photo from the camera roll). I was unable to reproduce this unfortunately.