2017-11-14 13 views
0

Rについては、EXIFデータの読み込みしかできませんでした。R EXIFデータをJPEGファイルに書き込む

EXIFデータをJPEGファイルに書き込む可能性はありますか?

+0

おそらくRを使用して、コマンドラインパラメータで外部exifツールプログラムを呼び出すことをお勧めします。 – anotherfred

+0

どのOSを使用していますか? – hrbrmstr

+0

私はubuntu 16.04を使用しています。 – makbuk

答えて

0

すべての方に感謝します。その結果、私は以下の解決策を得ました。私が使用してGPSの画像座標に追加するには、インストール

須藤はapt libimage-exiftool-perlの私のRコードで次に

exiftool_cmd <- paste("exiftool -GPSLongitudeRef=E -GPSLongitude=",latlon_exif[i,11]," -GPSLatitudeRef=N -GPSLatitude=",latlon_exif[i,10]," ","./nodejpg/",latlon_exif[i,4],".jpg",sep='') 
system(exiftool_cmd) 

ExifTool、 私はUbuntuのCOMANDを使用してインストールします。

latlon_exif [i、11]およびlatlon_exif [i、10] - coord inet、latlon_exif [i、4] - ファイルの名前。私が使用する画像データと時間を追加する

exiftool_cmd <- paste("exiftool -alldates=",shQuote(date_exif[which(date_exif[,4]%in%latlon_exif[i,4]),8])," ","./nodejpg/",latlon_exif[i,4],".jpg",sep='') 
system(exiftool_cmd) 

場合shQuote(date_exif [I]、[4])、8 latlon_exif%で(date_exif [4]%])データ時間形式:'2017-11-16 22:33:17'

関連する問題