SKPhotoBrowser icon indicating copy to clipboard operation
SKPhotoBrowser copied to clipboard

Image Rotation when Loading from URL

Open woaiqiu947 opened this issue 5 months ago • 2 comments

I encountered an issue where loading an image from a captured photo URL results in the image being rotated. However, when loading the same image using SDWebImage, it displays correctly without any rotation issues.  Steps to reproduce: 

  1. Capture a photo using the device camera.
  2. Load the image URL using SKPhoto.photoWithImageURL(_:).
  3. The image may appear rotated.  Interestingly, when using SDWebImage to load the same URL, the image is displayed correctly.  It seems that SKPhotoBrowser may not be handling the image’s EXIF metadata, particularly the orientation information, causing the image to be displayed in the wrong orientation.

woaiqiu947 avatar Sep 06 '24 05:09 woaiqiu947