Image Import and Rotate Issue

1) Portrait Image imported from files app is in landscape. How to fix this bug.

a) Image saved from iPad 11 Pro front camera.

b) saved image

c) Image thumbnail in files app import window

d) Image imported in landscape mode

2) This landscape image is fixed using below extension. But the output image obtained is slightly different for iOS 15 when compared with iOS 14.

How to fix both issue?

I cannot understand your question.

What does not work ? What would you expect ?

But the output image obtained is slightly different for iOS 15 when compared with iOS 14.

Different in what ? Colors ? Size ? orientation ?

Image Import and Rotate Issue
 
 
Q