forked from hoangsonww/Image-Video-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (84 loc) · 4.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Image & Video Tools: Unleash the Power of Media</title>
<script src="src/js/resizer.js"></script>
<link rel="stylesheet" href="src/css/common.css">
<link rel="stylesheet" href="src/css/resizer.css">
<link rel="icon" type="image/x-icon" href="assets/favicon.ico">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="manifest" href="manifest.json">
<link rel="canonical" href="https://hoangsonww.github.io/Image-Video-Tools/">
<meta name="description" content="Your comprehensive tools for resizing, cropping, rotating, filtering, converting, and watermarking images and videos.">
<meta property="og:title" content="Image & Video Tools: Unleash the Power of Media" />
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<meta http-equiv="content-language" content="en" />
<meta property="og:description" content="Your comprehensive tools for resizing, cropping, rotating, filtering, converting, and watermarking images and videos." />
<meta property="og:url" content="https://hoangsonww.github.io/Image-Video-Tools/" />
<meta property="og:site_name" content="Image & Video Tools" />
<meta property="og:image" content="https://hoangsonww.github.io/Image-Video-Tools/assets/image.webp" />
<meta property="og:image:alt" content="Image & Video Tools" />
<meta name="keywords" content="image, video, tools, resizer, cropper, rotator, filter, converter, watermarker, thumbnail, generator, sound, remover, about">
<meta name="author" content="Son Nguyen Hoang">
<meta name="robots" content="index, follow">
<meta name="rating" content="General">
<meta name="revisit-after" content="3 days">
<meta name="distribution" content="global">
<meta name="language" content="en">
<meta name="theme-color" content="#007bff">
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-N2PN8MEEQV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-N2PN8MEEQV');
</script>
<body>
<div id="navbar">
<a id="header-link" href="index.html">
<span class="title">Image & Video Tools</span>
</a>
<div>
<a href="index.html" style="text-decoration: underline; color: orangered">Resizer</a>
<a href="src/html/cropper.html">Cropper</a>
<a href="src/html/rotator.html">Rotator</a>
<a href="src/html/filter.html">Filters</a>
<a href="src/html/converter.html">Format Converter</a>
<a href="src/html/background-remover.html">Background Remover</a>
<a href="src/html/watermarker.html">Watermarker</a>
<a href="src/html/thumbnail-generator.html">Thumbnail Generator</a>
<a href="src/html/sound-remover.html">Sound Remover</a>
<a href="src/html/about.html">About</a>
</div>
</div>
<div id="container">
<div id="inputSection">
<p><strong>Choose an image to resize:</strong></p>
<input type="file" id="imageInput" accept="image/*" style="color: black !important">
<p><strong>Select your desired dimensions:</strong></p>
<div id="dimensionsInput">
<label for="width">Width:</label>
<input type="number" id="width" value="300">
<label for="height">Height:</label>
<input type="number" id="height" value="300">
<input type="checkbox" id="aspectRatio" checked>
<label for="aspectRatio">Maintain Aspect Ratio</label>
</div>
<p id="imageSizeDisplay"><strong>Estimated Image Size:</strong> <span id="currentImageSize">0 KB</span></p>
<button onclick="resizeImage()" style="font: inherit">Resize Image</button>
</div>
<div id="previewSection">
<p id="previewTitle">Live Preview</p>
<canvas id="canvas"></canvas>
</div>
</div>
<button id="dark-mode-toggle" onclick="toggleDarkMode()">
<i class="fas fa-moon"></i>
</button>
</body>
</html>