Hi,
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?
Regards.
Hi,
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?
Regards.
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. …
Thanks for your reply. Yes I checked it on the web. There are some javascript solutions but thought if we have anything available in Ionic like setting some properties of ionic-img tag.
Nope, the ion-img is mainly for lazy load.