laurencedawson / sync-for-lemmy

Issue tracker for the app Sync for Lemmy
114 stars 0 forks source link

Inconsistent handling of image rotation metadata/exif between post and image gallery views #240

Open stephen304 opened 1 year ago

stephen304 commented 1 year ago

Describe the bug

The image viewer for the post view and the full screen gallery image view have inconsistent handling of images with rotation metadata

Example: https://kbin.social/m/cat@lemmy.world/t/293455

The image shows correctly in the post but is rotated incorrectly when you press the image for the full screen view

I suspect this is due to the image rotation metadata which shows up as:

Orientation Rotate 90 CW

I'm guessing the post page is correctly applying the 90 degree clockwise rotation while the gallery view is ignoring the clockwise rotation needed to get the correct orientation.

Steps to Reproduce

  1. Navigate to the post
  2. See the image is correct
  3. Tap the image
  4. See the image is rotated incorrectly

Expected behavior
The rotation should be the same in both places

Screenshots
Screenshot_20230804-133711_Sync Screenshot_20230804-133715_Sync

Smartphone (please complete the following information):

ruffsl commented 1 year ago

Haha, I encountered this same issue, and even saved the same cat post URL to file this ticket later. Glad to see you beat me to it.