-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
164 lines (141 loc) · 7.42 KB
/
Copy pathindex.html
File metadata and controls
164 lines (141 loc) · 7.42 KB
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Image Compress — Free Online Image Compressor | Geniusplug</title>
<meta name="description" content="Image Compress — Free, fast, client-side image compressor. Compress JPEG, PNG and WebP images in your browser without uploading. Quick previews, batch processing and download.">
<meta name="keywords" content="image compressor, image compress, compress images, jpeg compressor, webp compressor, png compressor, free image tool, Geniusplug">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://geniusplug.github.io/Image-Compress-Free-Tool/">
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Image Compress — Free Online Image Compressor | Geniusplug" />
<meta property="og:description" content="Compress JPEG, PNG and WebP images locally in your browser. Fast, free and no uploads — keep privacy while saving bandwidth." />
<meta property="og:url" content="https://your-site.example.com/" />
<meta property="og:site_name" content="Geniusplug — Image Compress" />
<meta property="og:image" content="https://your-site.example.com/og-image.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Image Compress — Free Online Image Compressor | Geniusplug" />
<meta name="twitter:description" content="Compress images in your browser (JPEG, PNG, WebP). Batch support, previews, and downloads — no uploads, no tracking." />
<meta name="twitter:image" content="https://your-site.example.com/og-image.png" />
<!-- Misc -->
<meta name="theme-color" content="#6A1B9A" />
<meta name="author" content="Geniusplug" />
<!-- Structured data (JSON-LD) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Image Compress",
"url": "https://your-site.example.com/",
"description": "Compress JPEG, PNG and WebP images locally in the browser. Fast, free and private.",
"applicationCategory": "Utilities",
"operatingSystem": "All",
"creator": {
"@type": "Company",
"name": "Geniusplug"
}
}
</script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="container">
<header class="hero">
<div class="brand">
<h1>Image Compress</h1>
<p class="tag">100% Accurate • Free • Fast</p>
</div>
<div class="cta">
<button id="donateBtn" class="btn btn-donate" aria-label="Donate">
<span class="icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M12 21s-7.5-4.75-9.5-7.25C-0.5 8.5 4 4 7.5 6c2 1.25 2.5 3.5 4.5 3.5s2.5-2.25 4.5-3.5C20 4 24.5 8.5 21.5 13.75 19.5 16.25 12 21 12 21z" fill="#fff" /></svg>
</span>
<span class="txt">Donate</span>
</button>
<button id="contactBtn" class="btn btn-contact" aria-label="Contact">
<span class="icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M21 15a2 2 0 0 1-2 2H8l-5 3V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" fill="#fff"/></svg>
</span>
<span class="txt">Contact</span>
</button>
</div>
</header>
<section class="card uploader-card">
<div id="dropzone" class="dropzone" tabindex="0" aria-label="Drop images here">
<input id="file" type="file" accept="image/*" multiple />
<div class="drop-inner">
<strong>Drop images here</strong>
<span>or <button id="chooseBtn" class="link-btn">choose files</button></span>
<small>Supports multiple images • Previews & download</small>
</div>
</div>
<div class="controls">
<label>Format:
<select id="format">
<option value="image/jpeg">JPEG</option>
<option value="image/webp">WebP</option>
<option value="image/png">PNG</option>
</select>
</label>
<label>Quality: <span id="qualityVal">0.80</span>
<input id="quality" type="range" min="0.1" max="1" step="0.01" value="0.8" />
</label>
<label>Max width (px):
<input id="maxWidth" type="number" min="0" placeholder="0 = keep original" />
</label>
<button id="compressBtn" class="btn btn-primary">Compress Selected</button>
<button id="clearBtn" class="btn btn-muted">Clear All</button>
</div>
</section>
<section id="gallerySection">
<h2>Previews</h2>
<div id="gallery" class="gallery">
<div class="empty">No images selected</div>
</div>
<div id="globalProgress" class="global-progress" hidden>
<div class="bar"><div class="pos" style="width:0%"></div></div>
<div class="global-info">0 / 0</div>
</div>
</section>
<footer class="foot">
<div class="foot-left">© <span id="year"></span> Geniusplug</div>
<div class="foot-right">Built with <span class="heart">❤</span> — All processing in your browser</div>
</footer>
</main>
<!-- Floating social/contact actions with icons -->
<div class="fab-group" aria-hidden="true">
<a class="fab" id="waFab" href="https://wa.me/8801761487193" target="_blank" title="WhatsApp" rel="noreferrer">
<svg viewBox="0 0 24 24"><path fill="#fff" d="M20.5 3.5A11 11 0 1 0 12 23c1.9 0 3.7-.5 5.3-1.4L23 23l-1.5-5.7A10.9 10.9 0 0 0 22 7.5 11 11 0 0 0 20.5 3.5zM12 20.5a8.4 8.4 0 0 1-4-.9L8 17.7l.7-1.6A8.3 8.3 0 1 1 12 20.5z"/></svg>
</a>
<a class="fab" id="siteFab" href="https://www.romansarkar.com" target="_blank" title="Website" rel="noreferrer">
<svg viewBox="0 0 24 24"><path fill="#fff" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20z"/></svg>
</a>
<a class="fab" id="fbFab" href="https://www.facebook.com/Engineer.romansarkar" target="_blank" title="Facebook" rel="noreferrer">
<svg viewBox="0 0 24 24"><path fill="#fff" d="M22 12a10 10 0 1 0-11.5 9.9v-7H8.5v-3h2v-2.2c0-2 1.2-3.1 3-3.1.9 0 1.8.1 1.8.1v2h-1c-1 0-1.3.6-1.3 1.2V12h2.2l-.4 3h-1.8v7A10 10 0 0 0 22 12z"/></svg>
</a>
<a class="fab" id="lnFab" href="https://www.linkedin.com/in/romansarkar/" target="_blank" title="LinkedIn" rel="noreferrer">
<svg viewBox="0 0 24 24"><path fill="#fff" d="M4.98 3.5C3.88 3.5 3 4.4 3 5.52c0 1.12.88 2.02 1.98 2.02h.02C6.1 7.54 7 6.64 7 5.52 7 4.4 6.1 3.5 4.98 3.5zM3.5 8.98h3v10.02h-3zM10 8.98h2.88v1.37h.04c.4-.76 1.38-1.56 2.84-1.56 3.04 0 3.6 2 3.6 4.6V19h-3V13.7c0-1.25-.02-2.86-1.74-2.86-1.74 0-2.01 1.36-2.01 2.76V19H10z"/></svg>
</a>
</div>
<!-- One-time user info modal -->
<div id="infoModal" class="modal" hidden>
<div class="modal-card animate-pop">
<h3>Quick Info</h3>
<p>Please submit your contact info once so we can follow up.</p>
<form id="infoForm">
<label>Name <input name="name" required /></label>
<label>Email <input name="email" type="email" required /></label>
<label>WhatsApp <input name="whatsapp" required /></label>
<label>Address <input name="address" /></label>
<div class="modal-actions">
<button type="submit" class="btn btn-primary">Submit</button>
<button type="button" id="skipInfo" class="btn btn-muted">Skip</button>
</div>
</form>
</div>
</div>
<script src="app.js"></script>
</body>
</html>