我在stackoverflow上的第一篇文章中,我之前已经多次使用了EXIF-AS3 (Adobe Flash CS5和AS3)类,它总是有效的,我指的是这个类:
http://active.tutsplus.com/tutorials/actionscript/quick-tip-use-as3-to-grab-exif-data-from-a-jpg-image/ http://code.google.com/p/exif-as3/
我循环通过EXIF数据来找到相机的序列号,但是在新的佳能上,我似乎找不到这个序列号。序列号似乎存储在MarkerNotes中,但我不认为类正在读取它:
if (exifLoader.exif.ifds.primary)
{
displayIFD(exifLoader.exif.ifds.primary);
}
if (exifLoader.exif.ifds.exif)
{
displayIFD(exifLoader.exif.ifds.exif);
}
if (exifLoader.exif.ifds.gps)
{
displayIFD(exifLoader.exif.ifds.gps);
}
if (exifLoader.exif.ifds.interoperability)
{
displayIFD(exifLoader.exif.ifds.interoperability);
}
if (exifLoader.exif.ifds.thumbnail)
{
displayIFD(exifLoader.exif.ifds.thumbnail);
}我在这方面有什么建议或方法吗?
发布于 2013-01-22 01:50:24
我不太熟悉Exif对象的组成,但我猜如果'MarkerNotes‘是元信息的一个属性,它可以像这样访问:
if (exifLoader.exif.ifds.markerNotes) {
displayIFD(exifLoader.exif.ifds.markerNotes);
}看起来代码正在检查一个非空值,然后将数据发送到一个显示传入标记的方法。
https://stackoverflow.com/questions/14441792
复制相似问题