mafioso
mafioso

Reputation: 1632

Camera only takes pictures in portrait mode

When I take a picture in portrait mode everything is fine and looks like this:

enter image description here

in landscape mode it is in the wrong mode and is rotated around 90 degrees. How can I fix that?
Currently, it looks like that in the gallery. It isn't even saved as a landscape picture.

enter image description here

Upvotes: 0

Views: 235

Answers (1)

Luka Jacobowitz
Luka Jacobowitz

Reputation: 23532

You need to read the orientation from an UIImage like this: image.imageOrientation. And then rotate accordingly.

Upvotes: 1

Related Questions