img tag displays wrong orientation

前端 未结 14 1505
夕颜
夕颜 2020-11-27 12:11

I have an image at this link: http://d38daqc8ucuvuv.cloudfront.net/avatars/216/2014-02-19%2017.13.48.jpg

As you can see, this is a normal image with correct orientat

14条回答
  •  借酒劲吻你
    2020-11-27 13:07

    It happens since original orientation of image is not as we see in image viewer. In such cases image is displayed vertical to us in image viewer but it is horizontal in actual.

    To resolve this do following:

    1. Open image in image editor like paint ( in windows ) or ImageMagick ( in linux).

    2. Rotate image left/right.

    3. Save the image.

    This should resolve the issue permanently.

提交回复
热议问题