Skip to content

Preserve UIImage orientation in cropping method - #180

Open
ismaelsousa wants to merge 2 commits into
mrousavy:mainfrom
ismaelsousa:patch-1
Open

ismaelsousa wants to merge 2 commits into
mrousavy:mainfrom
ismaelsousa:patch-1

Conversation

@ismaelsousa

@ismaelsousa ismaelsousa commented Sep 25, 2026 •

Copy link
Copy Markdown

This pull request makes a small but important change to the image cropping logic in the NativeImage extension. The change ensures that when creating a new UIImage from a cropped CGImage, the original image's scale and orientation are preserved. This helps maintain image fidelity and avoids potential display issues.

  • Image cropping improvements:
    • NativeImage.swift: Updated the creation of UIImage from a cropped CGImage to include the original image's scale and imageOrientation parameters.

Update UIImage initialization to preserve original orientation during cropping.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant