Node中的Exif-Parser,提取XPComment、XPKeyword标签值
Exif-Parser in Node, extract XPComment, XPKeyword tag values
同时,在Node中使用Exif-Parser,获取XPComment的Tag值,XPKeywords似乎是一个数组(不确定是什么类型)。我想记录这些标签值如何以可读格式获取它。
我发现 XPComment 和 XPKeywords 被解析为字节数组,可以使用 String.fromCharCode 将其转换为字符串值。
例如:
String.fromCharCode.apply(null, [102, 111, 111]) 等于 'foo'.
Link:
同时,在Node中使用Exif-Parser,获取XPComment的Tag值,XPKeywords似乎是一个数组(不确定是什么类型)。我想记录这些标签值如何以可读格式获取它。
我发现 XPComment 和 XPKeywords 被解析为字节数组,可以使用 String.fromCharCode 将其转换为字符串值。
例如: String.fromCharCode.apply(null, [102, 111, 111]) 等于 'foo'.
Link: