It looks like that the meta data is deleted when i uploaded image to this portal. Can you try to download the image from https://miniimagesvideos.com/nipun.jpg 2
I have uploaded the image on Ubuntu server. This should ensure there is no change to Meta data
I tried to use the code mentioned by you and i am able to reproduce the issue i.e. the view will be rotated by 90 degree
If you will upload the same image on this portal then the image view will be correct i.e. there is no rotation of 90 degree