2010年8月5日 星期四

讀取相片的Exif資訊 - Exif library for AS3



要讀取Exif資訊其實不會很難,直接用bytearray去拆解就可以,但是很費工,今天偶爾看到這個,有人已經寫好現成的類別了,那就省事多了,照片裡有經緯度的話也讀得到,所以直接標在地圖上也是很ok的。
(只不過它的授權是限非商業用途…使用時請注意~)

Demo網頁:
http://shichiseki.jp/as3/exif_info.html

Google Code:
http://code.google.com/p/exif-as3/

有興趣自己寫拆解Exif資料的朋友,下面這個是Exif的格式:
http://park2.wakwak.com/~tsuruzoh/Computer/Digicams/exif-e.html








It won't be too difficult to extract Exif data from pictures. One can easily get the information by reading bytearrays. Though it's easy, but it takes much time reading the specifications.
Someone have already done the package for us.
Note that it's for uncommercial use.

Here is the demo page:
http://shichiseki.jp/as3/exif_info.html

And here is the source:
http://code.google.com/p/exif-as3/

Exif specification here:
http://park2.wakwak.com/~tsuruzoh/Computer/Digicams/exif-e.html





沒有留言:

張貼留言