加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

Get the image file(s) some informations,Including the Make,M

发布时间:2020-12-14 06:30:26 所属栏目:Java 来源:网络整理
导读:This is a blog about how to get the image file(s) some informations.Including the Make,Model,Date/Tiime,etc. while,how can do it? I should use a tool which name is : ,writed by Java,and now its version is 2.6.4. and you can get more from t

This is a blog about how to get the image file(s) some informations.Including the Make,Model,Date/Tiime,etc.

while,how can do it? I should use a tool which name is :,writed by Java,and now its version is 2.6.4.

and you can get more from the . or

How does it work?

while,I hava a demo and I will show the complete code to you.

> String LINE = "-" String RIGHT_PARENTHESES = "]" main(String[] args) String[] pathNames = "C:/2013-02-08_12-24-54_100.jpg", "C:/20022013011.jpg", "C:/IMG_0018.JPG", "C:/IMG_0697.JPG", "C:/P1080402.JPG" List files = ArrayList File file = List> imagesInfo = File file = File("C:/IMG_0697.JPG" Map map = System.out.println("##### the image file informations" printImagesInfo(List> (! (Map System.out.println("======================================" HandleMap(Map Iterator iterator = String name = String value = System.out.println(name + " : " + @SuppressWarnings("unchecked" Map getImageInfoOfExif(File jpegFile) Metadata metadata = Directory exifDirectory = metadata.getDirectory(ExifIFD0Directory. Collection tags = Iterator iterator = Map abstractsMap = HashMap Tag tag = String[] tagArrays = String[] abstracts = tagArrays[0 abstractsMap.put(abstracts[1].trim(),tagArrays[1 List> getImageInfoOfExif(List files) (files == ) List> list = ArrayList> (files.size() > 0 Map map = }

Date/Time : 2013:02:08 12:24:537272======================================/300300======================================/7272======================================6.1.3/Time : 2013:06:27 23:31:19907272======================================1.00xc4a5) : [208/0xc6d3) : [128/Time : 2013:01:04 00:01:061800xc6d2) : [64180======================================6.1.3/Time : 2013:06:27 23:31:19907272

then,you should have a try!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读