ImageIO - get image type and exif data

后端 未结 3 1726
天涯浪人
天涯浪人 2020-12-05 09:55

Given some source file (or more generic - input stream), I need to find out

  • is it an image
  • if it is an image, then retrieve its type (png/jpeg/gif/etc
3条回答
  •  既然无缘
    2020-12-05 10:24

    Last time I had to do this, a couple of years ago, the standard API couldn't read EXIF data. This library can do so though:

    http://www.drewnoakes.com/code/exif/

提交回复
热议问题