-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
146 lines (134 loc) · 8.25 KB
/
index.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en">
<head>
<title>Free Online Image Editor</title>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="content-language" content="en" />
<meta name="google" content="notranslate" />
<meta name="title" content="Free Online Image Editor">
<meta name="Description" content="Easily and quickly edit images online for free!" />
<meta name="Keywords"
content="free online image editor jpg png gif convert image converter contrast saturation sepia brightness hue grayscale blur crop resize download export">
<meta name="author" content="Damian Katsios" />
<meta name="theme-color" content="#0D6EFD">
<meta property="og:title" content="Online Image Editor" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://image-editor.dkatsios.ml" />
<meta property="og:image" content="https://image-editor.dkatsios.ml/assets/android-chrome-192x192.png" />
<meta property="og:site_name" content="Free Online Image Editor" />
<meta property="og:description" content="Easily and quickly edit images online for free!" />
<meta property="og:locale" content="en_US" />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Free Online Image Editor" />
<meta name="twitter:description" content="Easily and quickly edit images online for free!" />
<meta name="twitter:image" content="https://image-editor.dkatsios.ml/assets/android-chrome-192x192.png">
<meta name="twitter:site" content="@ddkatsios">
<meta name="twitter:creator" content="@ddkatsios">
<meta name="twitter:image:src" content="https://image-editor.dkatsios.ml/assets/android-chrome-192x192.png">
<meta name="twitter:domain" content="https://image-editor.dkatsios.ml">
<link rel="manifest" href="/manifest.json">
<link rel="home" href="https://image-editor.dkatsios.ml">
<link rel="canonical" href="https://image-editor.dkatsios.ml">
<link rel="icon" href="https://image-editor.dkatsios.ml/assets/favicon.ico">
<link rel="icon" type="image/png" href="https://image-editor.dkatsios.ml/assets/android-chrome-192x192.png"
sizes=192x192>
<link rel="icon" type="image/png" href="https://image-editor.dkatsios.ml/assets/android-chrome-256x256.png"
sizes=256x256>
<link rel="apple-touch-icon" sizes="180x180" href="https://image-editor.dkatsios.ml/assets/apple-touch-icon.png">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<style>
::selection {
background-color: #0D6EFD;
color: white;
}
</style>
<meta name="google-site-verification" content="U4gBJvr5HgBdRfu3vdW7EcSEqh9A2TUILHHt7ulAp6E" />
</head>
<body>
<div class="container-sm mt-4">
<h1><i class="bi bi-card-image"></i> Free Online Image Editor</h1>
<p>Easily and quickly edit, resize and crop images online for free!</p>
<form class="my-4">
<label for="file" class="form-label">Select or drag and drop an image or GIF to begin</label>
<input class="form-control" accept="image/*" type="file" id="file" onchange="loadFile(event)">
</form>
<div class="row gap-2">
<div class="col-lg">
<form id="adjustments">
<label for="saturation" class="form-label">Saturation</label>
<input type="range" class="form-range" id="saturation" default="100" value="100" oninput="Edit()"
min="0" max="200">
<label for="contrast" class="form-label">Contrast</label>
<input type="range" class="form-range" id="contrast" value="100" oninput="Edit()" min="0" max="200">
<label for="hue" class="form-label">Hue</label>
<input type="range" class="form-range" id="hue" value="0" oninput="Edit()" min="0" max="360">
<label for="invert" class="form-label">Invert</label>
<input type="range" class="form-range" id="invert" value="0" oninput="Edit()" min="0" max="100">
<label for="grayscale" class="form-label">Gray Scale</label>
<input type="range" class="form-range" id="grayscale" value="0" oninput="Edit()" min="0">
<label for="brightness" class="form-label">Brightness</label>
<input type="range" class="form-range" id="brightness" value="100" oninput="Edit()" min="1"
max="200">
<label for="sepia" class="form-label">Sepia</label>
<input type="range" class="form-range" id="sepia" default="0" value="0" oninput="Edit()" min="0">
<label for="blur" class="form-label">Blur</label>
<input type="range" class="form-range" id="blur" default="0" value="0" oninput="Edit()" min="0"
max="25" step="0.1">
<label for="opacity" class="form-label">Opacity</label>
<input type="range" class="form-range" id="opacity" default="100" value="100" oninput="Edit()"
min="0" max="100">
<div class="text-center my-4">
<button class="btn btn-outline-primary m-1" type="button" disabled id="export-image-btn"
onclick="Download()" disabled data-bs-toggle="tooltip" data-bs-placement="top"
title="Download the edited image"><i class="bi bi-cloud-arrow-down"></i> Export
Image</button>
<button class="btn btn-outline-danger m-1" type="button" id="reset-btn" data-bs-toggle="tooltip"
data-bs-placement="top" title="Reset the adjustments"><i class="bi bi-arrow-clockwise"></i>
Reset Sliders</button>
</div>
</form>
</div>
<div class="col-lg">
<img id="output" width="100%" class="rounded mb-4 d-none" alt="your image" />
</div>
</div>
<div class="text-center my-4">
Brought to you by <a href="https://dkatsios.ml" target="_blank" rel="noopener">Damian</a>. ©2021
Damian Katsios - All Rights Reserved - <a href="https://github.com/dk-raw/image-editor-online"
target="_blank" rel="noopener">Source Code</a>, <a href="mailto:[email protected]">Contact</a>
</div>
</div>
<script src="dist/loadFile.js"></script>
<script src="dist/Edit.js"></script>
<script src="dist/Reset.js"></script>
<script src="dist/Download.js"></script>
<script>
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl)
});
window.addEventListener("load", () => {
document.querySelector('#export-image-btn').disabled = true;
});
</script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('./serviceworker.js')
.then((reg) => console.log('Success: ', reg.scope))
.catch((err) => console.log('Error: ', err));
});
} else {
console.log('Service worker is not supported in this browser');
}
</script>
</body>
</html>