JHeader

码农软件 · 软件分类 · 图形/图像处理 · 2019-09-07 17:59:24

软件介绍

这是一个小巧的相片Exif信息读取和修改的Java库。它同时是一个可执行程序,但代码是开源的,可以通过看代码提取出接口自己调用。

一个读取Exif和修改拍照日期的例子:

 

import java.util.Map;
import java.util.SortedMap;

import net.sourceforge.jheader.App1Header;
import net.sourceforge.jheader.JpegHeaders;
import net.sourceforge.jheader.TagValue;
import net.sourceforge.jheader.App1Header.Tag;

public class Main {

	public static void main(String[] args) throws Exception {
		String filename = "IMG_1062.JPG";

		JpegHeaders jpegHeaders = new JpegHeaders(filename);

		// EXIF
		App1Header exifHeader = jpegHeaders.getApp1Header();

		// 遍历显示EXIF
		SortedMap tags = exifHeader.getTags();
		for (Map.Entry entry : tags.entrySet()) {
			System.out.println(entry.getKey() + "[" + entry.getKey().name
					+ "]:" + entry.getValue());
		}

		// 修改EXIF的拍照日期
		exifHeader.setValue(Tag.DATETIMEORIGINAL, "2007:11:04 07:42:56");
		// 保存
		jpegHeaders.save(true);

	}
}

 

本文地址:https://codercto.com/soft/d/14092.html

Approximation Algorithms

Approximation Algorithms

Vijay V. Vazirani / Springer / 2001-07-02 / USD 54.95

'This book covers the dominant theoretical approaches to the approximate solution of hard combinatorial optimization and enumeration problems. It contains elegant combinatorial theory, useful and inte......一起来看看 《Approximation Algorithms》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具