download url : https://github.com/exif-js/exif-js
1
2
3
4
5
6
7
8
|
//获取照片方向角属性,用户旋转控制
EXIF.getData(file,
function
() {
// file input[type=file]的文件
EXIF.getAllTags(
this
);
var
orientation = EXIF.getTag(
this
,
'Orientation'
);
console.log(orientation );
});
|
附件:http://down.51cto.com/data/2367731
本文转自 antlove 51CTO博客,原文链接:http://blog.51cto.com/antlove/1775964