File tree 3 files changed +10218
-0
lines changed
3 files changed +10218
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < script type ="text/javascript " src ="jquery-1.7.1.js "> </ script >
5
+ < script type ="text/javascript " src ="jquery.exif.js "> </ script >
6
+ </ head >
7
+
8
+ < body >
9
+ < form id ="myform ">
10
+ < input type ="file " id ="file " /> </ br >
11
+ < label > Camera Model</ label >
12
+ < input type ="text " name ="cameraModel " id ="cameraModel " /> </ br >
13
+
14
+ < label > Aperture</ label >
15
+ < input type ="text " name ="aperture " id ="aperture " /> </ br >
16
+
17
+ </ form >
18
+ < script >
19
+ var someCallback = function ( exifObject ) {
20
+
21
+ $ ( '#cameraModel' ) . val ( exifObject . Model ) ;
22
+ $ ( '#aperture' ) . val ( exifObject . FNumber ) ;
23
+
24
+ // Uncomment the line below to examine the
25
+ // EXIF object in console to read other values
26
+ //console.log(exifObject);
27
+
28
+ }
29
+
30
+ try {
31
+ $ ( '#file' ) . change ( function ( ) {
32
+ $ ( this ) . fileExif ( someCallback ) ;
33
+ } ) ;
34
+ }
35
+ catch ( e ) {
36
+ alert ( e ) ;
37
+ }
38
+
39
+ </ script >
40
+ </ body >
41
+ </ html >
You can’t perform that action at this time.
0 commit comments