exif

Writing XPKeywords in Exif

偶尔善良 提交于 2019-12-30 07:56:03
问题 I want to write XPKeywords in a Jpeg Image. Till now I am using Sansaleen java api for writing Exif tags in Jpeg images. I am able to write most of the tags like subject, comment, author, rating but I am not able to write Windows XP Keywords. I am using below code: public static TiffOutputField getTiffOutputFieldKeyword( TiffOutputSet outputSet, String metaDataToChange) { TiffOutputField imageHistoryPre = outputSet .findField(TiffConstants.EXIF_TAG_XPKEYWORDS); if (imageHistoryPre != null) {

Write EXIF into JPG with PHP

放肆的年华 提交于 2019-12-30 07:01:14
问题 For a couple of days I'm trying to write (or update) EXIF information (geotag, latitude and longitude) in a JPG image using PHP. After consulting many sites without success I think the best option is to use Imagick but although it seems I can set the latitude and longitude with setImageProperty(), but when I write the picture the EXIF is not saved. Here I give a code fragment: //Loading existing image $edited = new Imagick(dirname(__FILE__)."/mini.jpg"); //Stripping the curren EXIF info. I

Changing “DateTaken” of a photo

烂漫一生 提交于 2019-12-30 05:54:10
问题 I just came back from a trip to the US, and after editing all the photos, I noticed that the camera used the Israeli time zone, and not the american. There is a 7 hours time difference, so it's a big problem for me. I have 175GB of photos, but I care "only" about 350 photos. I can't edit their EXIF manually, so I thought about using C#. The idea is that it will read each photo's EXIF, get the time, and set the time minus 7 hours in the original photo. I tried using the Image class, but it

What is the maximum size of JPEG metadata?

谁都会走 提交于 2019-12-29 06:18:36
问题 Is there a theoretical maximum to the amount of metadata (EXIF, etc) that can be incorporated in a JPEG file? I'd like to allocate a buffer that is assured to be sufficient to hold the metadata for any JPEG image without having to parse it myself. 回答1: There is no theoretical maximum, since certain APP markers can be used multiple times (e.g. APP1 is used for both the EXIF header and also the XMP block). Also, there is nothing to prevent multiple comment blocks. In practice the one that is

What is the maximum size of JPEG metadata?

萝らか妹 提交于 2019-12-29 06:17:08
问题 Is there a theoretical maximum to the amount of metadata (EXIF, etc) that can be incorporated in a JPEG file? I'd like to allocate a buffer that is assured to be sufficient to hold the metadata for any JPEG image without having to parse it myself. 回答1: There is no theoretical maximum, since certain APP markers can be used multiple times (e.g. APP1 is used for both the EXIF header and also the XMP block). Also, there is nothing to prevent multiple comment blocks. In practice the one that is

set orientation of android camera started with intent ACTION_IMAGE_CAPTURE [duplicate]

房东的猫 提交于 2019-12-29 03:21:10
问题 This question already has answers here : Why does an image captured using camera intent gets rotated on some devices on Android? (23 answers) Closed last year . I'm working at an application in android which uses camera to take photos.For starting the camera I'm using an intent ACTION_IMAGE_CAPTURE like this: Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File image=new File(Environment.getExternalStorageDirectory(),"PhotoContest.jpg"); camera.putExtra(MediaStore.EXTRA_OUTPUT

获取图片Exif信息

倾然丶 夕夏残阳落幕 提交于 2019-12-29 01:11:57
问题:手机照片上传时,会发现ios手机上传竖拍照片会逆时针旋转90度,横拍照片无此问题;而Android不会出现这种现象。 原因:ios系统默认Orientation属性为1,与常规机器拍摄图片的Orientation属性不一致。 方案:读取文件Exif信息,获取Orientation属性,修改Orientation属性为0。 Orientation属性属性说明如下: 旋转角度 参数 0° 1 顺时针90° 6 逆时针90° 8 180° 3 读取Exif信息: (依赖:metadata-extractor-2.10.1.jar,xmpcore-5.1.2.jar) package img; import java.io.*; import java.util.Collection; import java.util.Iterator; import com.drew.imaging.ImageMetadataReader; import com.drew.metadata.*; import com.drew.metadata.exif.ExifIFD0Directory; /** * 获取图片exif信息 * @date 2018年1月30日 下午8:29:32 * @see http://blog.csdn.net/z69183787/article/details

Android 图片Exif信息相关的获取与修改

余生长醉 提交于 2019-12-29 01:06:21
1 Exif是什么   Exif是一种图像文件格式,它的数据存储于JPEG格式是完全相同的,实际上Exif格式就是JPEG格式头插入了 数码照片的信息,包括拍摄的光圈、快门、平衡白、ISO、焦距、日期时间等各种和拍摄条件以及相机品牌、型号、色彩编码以及GPS等。简单来 说,Exif=拍摄参数+JPED。因此,可以利用任何可以查看JPEG文件的看图软件浏览Exif信息,但是并不是所有图形程序都能处理Exif信息, 而自Android2.0之后,加入了对图片Exif数据的支持。 2 ExifInterface类介绍   在Android下,通过ExifInterface类操作图片的Exif信息,虽然这个类的名字包含Interface,但它不是一个接口, 它是一个类,处于"android.media.ExifInterface"包下,是媒体库的一部分功能的实现。ExifInterface有一个构造 函数,接受一个String类型的数据,此为读取图片文件的地址。   Exif数据在图片中可以理解为Key-value键值对的方式存储,一般通过如下几个方法操作:   String getAttribute(String tag):获取图片中属性为tag的字符串值。   double getAttribute(String tag,double defaultValue)

Android -- Exif

走远了吗. 提交于 2019-12-29 01:05:12
Exif Exif是一种图像文件格式,它的数据存储于JPEG格式是完全相同的,实际上Exif格式就是JPEG格式头插入了数码照片的信息,包括拍摄的光圈、快门、平衡白、ISO、焦距、日期时间等各种和拍摄条件以及相机品牌、型号、色彩编码以及GPS等。 ExifInterface 在Android下,通过ExifInterface类操作图片的Exif信息,虽然这个类的名字包含Interface,但它不是一个接口,它是一个类,处于"android.media.ExifInterface"包下,是媒体库的一部分功能的实现。ExifInterface有一个构造函数,接受一个String类型的数据,此为读取图片文件的地址。 Exif数据在图片中可以理解为Key-value键值对的方式存储,一般通过如下几个方法操作: String getAttribute(String tag)//获取图片中属性为tag的字符串值。 double getAttribute(String tag,double defaultValue)//获取图片中属性为tag的double值。 int getAttributeInt(String tag,defaultValue//获取图片中属性为tag的int值。 void setAttribute(String tag,String value)//根据输入参数

(四十三)获取图片exif信息

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-29 01:04:22
1、什么是Exif Exif是一种图像文件格式,它的数据存储于JPEG格式是完全相同的,实际上Exif格式就是JPEG格式头插入了数码照片的信息,包括拍摄的光圈、快门、平衡白、ISO、焦距、日期时间等各种和拍摄条件以及相机品牌、型号、色彩编码以及GPS等。简单来说,Exif=拍摄参数+JPED。因此,可以利用任何可以查看JPEG文件的看图软件浏览Exif信息,但是并不是所有图形程序都能处理Exif信息,而自Android2.0之后,加入了对图片Exif数据的支持。 2、ExifInterface 在Android下,通过ExifInterface类操作图片的Exif信息,虽然这个类的名字包含Interface,但它不是一个接口,它是一个类,处于"android.media.ExifInterface"包下,是媒体库的一部分功能的实现。ExifInterface有一个构造函数,接受一个String类型的数据,此为读取图片文件的地址。   Exif数据在图片中可以理解为Key-value键值对的方式存储,一般通过如下几个方法操作:   String getAttribute(String tag):获取图片中属性为tag的字符串值。   double getAttribute(String tag,double defaultValue):获取图片中属性为tag的double值。