Image orientation


I am using ion-img tag in my application where the image comes from a web URL. how can I change the orientation of image? some images are stored as portrait and some as landscape. Is there any way to handle this?


I think this is has nothing to do with Ionic. It’s a general issue. You’ll find some help on Stackoverflow. Maybe there are already solutions. Search the web.

What do you mean with portait and landscape and which kind do you want to rotate? You could check the width and height by JavaScript and set transform rotate on it. …

1 Like