-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
55 lines (41 loc) · 1.63 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<html>
<head>
<meta charset="utf-8" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=yes">
<meta name="Copyright" Content=""/>
<meta name="author" content="AfarWind Z">
<meta name="Keywords" content=""/>
<meta name="Description" content=""/>
<title></title>
</head>
<body>
<form action="" method="post" >
<div class="up_img">
<input type="file" class="upload_file" id="upload_file_0" name="upload_file[]" />
</div>
<canvas id="myCanvas"></canvas>
</form>
<script src="scripts/zepto.min.js" type="text/javascript"></script>
<script src="scripts/exif.js" type="text/javascript"></script>
<script src="scripts/jpegencoder.js" type="text/javascript"></script>
<script src="scripts/megapix-image.js" type="text/javascript"></script>
<script src="scripts/local_resize_img.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("#upload_file_0").LocalResizeIMG({
quality: 0.8,
before: function (that, blob) {},
success: function (result) {
var img = new Image();
img.src = result.base64;
$('body').append(img);
console.log(result);
}
});
});
</script>
</body>
</html>