-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcropIndex.html
71 lines (66 loc) · 3.22 KB
/
cropIndex.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<title>Image Cropper</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.5/croppie.css" />
</head>
<style>
</style>
<body>
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 text-center">
<h3>Image Cropper</h3>
</div>
<div class="col-lg-12">
<div class="jumbotron text-center">
<div class="row">
<div class="col-lg-12">
<!-- <img id="uploaded-image" src="https://flexgroup.nz/wp-content/uploads/2018/05/dummy-image.jpg" height="300px" width="600px"> -->
</div>
<div class="input-group mt-3">
<div class="custom-file">
<input type="file" accept="image/*" id="cover_image">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal" tabindex="-1" role="dialog" id="uploadimageModal">
<div class="modal-dialog" role="document" style="min-width: 300px">
<!-- <div class="modal-dialog" role="document> -->
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Edit your picture</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-12 text-center">
<div id="image_demo"></div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary crop_image">Crop and Save</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<div>
<img id="myImage" src="Croppie-2/demo/cat.jpg" alt="Girl in a jacket" style="width:200px; height:200px">
</div>
<script src="https://code.jquery.com/jquery-3.5.1.js" integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=" crossorigin="anonymous"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.5/croppie.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script src="image-cropper.js"></script>
</body>
</html>