« 逆輸入 | メイン | h2210再セットアップ(こうさぎ) »
2004年12月02日
[ blog ]
MTImageInfo
JPEGファイルのEXIF情報を抽出してMovableTypeで表示させるためのプラグイン、MTImageInfoを導入してみる。
- 公式サイトからzipファイルを落としてきて、(mtのディレクトリ)/plugins/に設置。
- CPANでImage::InfoとかFile::Basenameをインストール。
- テンプレートではなくエントリーでプラグインを使うには細工が必要な気もするが、MTaws導入時に細工済みなので今回は特に問題なし。
あとはエントリーに
<MTImageInfo img="[MTBlogSitePath]archives/hogehoge.JPG"> <$MTImageInfoField name="DateTimeOriginal" format="%Y/%m/%d/%H:%M:%S"$> (JST), <$MTImageInfoField name="width"$> x <$MTImageInfoField name="height"$>, <$MTImageInfoField name="ExposureTime"$>(s), F/<$MTImageInfoField name="FNumber"$>, ISO-<$MTImageInfoField name="ISOSpeedRatings"$>, <$MTImageInfoField name="ExposureBiasValue"$>(step), <$MTImageInfoField name="WhiteBalance"$>, <$MTImageInfoField name="FocalLength"$>(mm) </MTImageInfo>
とか書いておけば、下の様にEXIF情報を元に撮影データを表示させることが出来る。
2004/11/27/01:59:51(JST), 3504 x 2336, 1/250(s), F/80/10, ISO-100, 0/2(step), Auto white balance, 85/1(mm)
ただ、F値や焦点距離が分数で表示されるのは何とかならないものだろうか。EXIF情報としてそもそも分数の形で入っているようなので、抽出後に"/"の前後で分離して、除算を行った結果を出力する様にMTImageInfoを改変すればいいのだと思うが面倒だ・・・
投稿者 散財人 : 2004年12月02日 08:56
Google Search Result
-
The Tweezer's Edge: Stories: MTImageInfo Plugin : The MTImageInfo plugin reads this EXIF data from images on your server and allows
you to display it next to the images in your MT weblog. ... -
MTImageInfo - New plugin - Movable Type Community Forum : MTImageInfo allows this EXIF data to be displayed with the image on a weblog page.
This plugin should be most useful to those with photo-weblogs, ... -
ImageInfo | Plugin Directory | movabletype.org : <MTImageInfo img="[MTBlogSitePath]/images/BrokenWindow.jpg" leading_text="[li]"
trailing_text="[/li]"> <$MTImageInfoField name="width" ...
Trackback Pings
このエントリーのトラックバックURL:
http://www.sanzai.net/mt-tb.cgi/250
このリストは、次のエントリーを参照しています: MTImageInfo:
» EXIF表示のMTプラグインを入れる from FITT
EXIFを表示するプラグインを入れてみる。下記サイトに感謝。 http://w... [続きを読む]
トラックバック時刻: 2006年03月19日 20:19