team-hiroqさん
ご返信ありがとうございます。
iPhotoでちゃんと取れてるんですね。
うーむもう一回試してみます。
ちなみに
exif.saveAttributes();
をするとExif情報が元あったものがほとんど破棄されてしまいますよね。
ExifInterfaceのリファレンスにも
Save the tag data into the JPEG file. This is expensive because it
involves copying all the JPG data from one file to another and
deleting the old file and renaming the other. It's best to use
setAttribute(String, String) to set all attributes to write and make a
single call rather than multiple calls for each attribute.
とあったので、全部設定しなおすような感じになると認識しています。
waka21
> こんばんは。team-hiroqです。
>
> 前述のソースですが、日付を取得している部分で利用していました。
> 逆にいうと、そのフォーマットでデータを設定してあげる必要があるかと。
>
> 念のためですが、waka21さんが転載してくれた
> exif.setAttribute(ExifInterface.TAG_DATETIME, "2011/03/1 17:23:32:00");
> ではなく
> exif.setAttribute(ExifInterface.TAG_DATETIME, "2011:03:01 17:23:32");
> ということです。
>
> Exiftoolではないですが、上記の記述で動かしてみたところ
> macのiphotoでみる限り2011/03/1 17:23:32にちゃんと変更できているようです。
>
> ではでは、失礼します。
> -------------------------------------------
> team-hiroq
> 2011年3月15日18:29 waka21 <
hiromix...@gmail.com>: