Is javax.imageio.ImageIO broken? It imports some images as rotated

后端 未结 1 1827
终归单人心
终归单人心 2021-01-12 08:09

Below you will see a picture of beatiful pastry called \"simit\" from Turkey. It is taken from iPad 2, therefore it is a JPEG with dimensions 720*960.

相关标签:
1条回答
  • 2021-01-12 08:29

    The photo was probably taken holding the iPad in portrait mode, and therefore contains EXIF orientation information, which ImageIO ignores, but you can use other libraries, like Apache Sanselan to correctly handle it.

    So the image itself is 960x720, but MacOS, ImgUR, Facebook etc correctly take the EXIF info into account.

    And simit looks delicious :)

    0 讨论(0)
提交回复
热议问题