« 車検証 | メイン | 無限エアクリーナー »

EXIF情報の取り出しメモ

linuxなどでデジカメ撮影したJPGデータからEXIF情報を取り出すにはどうしたらいいかと調べて、以下のツールに行き当たりました。

ExifTool by Phil Harvey

ExifTool is a Perl module with an included command-line application for reading and writing meta information in image files. It recognizes EXIF, GPS, IPTC, XMP, JFIF, GeoTIFF, ICC Profile, Photoshop IRB and ID3 meta information as well as the maker notes of many digital cameras including Canon, Casio, FujiFilm, Kodak, Leaf, Minolta/Konica-Minolta, Nikon, Olympus/Epson, Panasonic/Leica, Pentax/Asahi, Ricoh, Sanyo and Sigma/Foveon.

Perl moduleもついてくるのでCGIとの相性もバッチリです。

関連リンク:
Exifファイルフォーマット
Image::Info - Extract meta information from image files
EXIF抽出スクリプトのサンプル

Orientationを取り出して、自動で回転してリサイズするスクリプトとか作ろうと考えてます。exiftoolを使うと

$ exiftool -orientation DSC_1010.JPG
Orientation : Rotate 270 CW


と簡単に調べることが出来ます。

【この記事に関連するエントリー: camera

トラックバック

このエントリーのトラックバックURL:
http://nomano.shiwaza.com/mt333/tb203.cgi/2077

コメントを投稿

富士スピードウェイ集団訴訟関連

実践Web2.0 BOOK 人気ブロガー直伝! 一歩先行くWeb2.0的ワーキングスタイル
4844324187
↑この本のお手伝いをしました。是非チェックしてみて下さい。

About

このエントリーの概要です。

あわせて読みたい
フィードメーター - [の] のまのしわざ