-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
255 lines (237 loc) · 9.69 KB
/
index.html
File metadata and controls
255 lines (237 loc) · 9.69 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Primary Meta Tags -->
<title>ImageSquash Pro — Free Bulk Image Compressor (80MB → 200KB)</title>
<meta
name="title"
content="ImageSquash Pro — Free Bulk Image Compressor (80MB → 200KB)"
/>
<meta
name="description"
content="Compress huge images (80MB+) down to ~200KB in bulk. Drag & drop, resize, and download as ZIP. Professional-grade browser tool using HTML5 canvas. No upload, fully private."
/>
<meta
name="keywords"
content="image compressor, bulk image compress, compress 80MB to 200KB, webp compressor, jpeg compressor, png compressor, browser image tool, privacy, free, no upload, GitHub Pages"
/>
<meta name="author" content="ImageSquash Pro" />
<meta name="robots" content="index, follow" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta
property="og:url"
content="https://tutorialsandroid.github.io/image-squash-pro/"
/>
<meta
property="og:title"
content="ImageSquash Pro — Bulk Image Compressor"
/>
<meta
property="og:description"
content="Compress 80MB images to ~200KB right in your browser. No uploads, fully private. Batch processing, ZIP download."
/>
<meta
property="og:image"
content="https://raw.githubusercontent.com/TutorialsAndroid/image-squash-pro/refs/heads/main/assets/banner.png"
/>
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta
name="twitter:url"
content="https://tutorialsandroid.github.io/image-squash-pro/"
/>
<meta
name="twitter:title"
content="ImageSquash Pro — Bulk Image Compressor"
/>
<meta
name="twitter:description"
content="Compress 80MB images to ~200KB right in your browser. No uploads, fully private. Batch processing, ZIP download."
/>
<meta
name="twitter:image"
content="https://raw.githubusercontent.com/TutorialsAndroid/image-squash-pro/refs/heads/main/assets/banner.png"
/>
<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon/favicon.ico" />
<!-- JS Zip -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "ImageSquash Pro",
"operatingSystem": "Web Browser",
"applicationCategory": "MultimediaApplication",
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
"description": "Professional-grade bulk image compressor that runs entirely in your browser. No uploads, 100% private.",
"browserRequirements": "Requires modern browser with HTML5 Canvas"
}
</script>
<!-- Styles -->
<link rel="stylesheet" href="css/index.css" />
</head>
<body>
<!-- ═══════════════ HEADER ═══════════════ -->
<div id="header"></div>
<!-- ═══════════ SLOGAN BAR (NEW) ═══════════ -->
<div class="slogan-bar">
<span class="shield">🔒</span>
Professional‑grade bulk image compressor that runs entirely in your
browser. No image uploading to the server – process images on your own
machine. 100% private & safe.
</div>
<!-- ═══════════════ MAIN CONTAINER ═══════════════ -->
<div class="app-container">
<!-- ── Settings Panel ── -->
<div class="settings-panel" id="settingsPanel">
<div class="settings-group">
<span class="settings-label">Preset</span>
<div class="preset-pills" id="presetPills">
<button class="preset-pill" data-preset="maximum">Maximum</button>
<button class="preset-pill active" data-preset="high">High</button>
<button class="preset-pill" data-preset="medium">Medium</button>
<button class="preset-pill" data-preset="low">Low</button>
<button class="preset-pill" data-preset="custom">Custom</button>
</div>
</div>
<div class="settings-divider"></div>
<div class="settings-group" id="qualityGroup">
<span class="settings-label">Quality</span>
<div class="slider-container">
<input
type="range"
id="qualitySlider"
min="5"
max="95"
value="35"
step="1"
/>
<span class="slider-value" id="qualityValue">35%</span>
</div>
</div>
<div class="settings-divider"></div>
<div class="settings-group" id="dimensionGroup">
<span class="settings-label">Max px</span>
<input
type="number"
class="dimension-input"
id="maxDimension"
value="1920"
min="200"
max="8000"
step="10"
/>
</div>
<div class="settings-divider"></div>
<div class="settings-group">
<span class="settings-label">Format</span>
<select class="format-select" id="outputFormat">
<option value="image/webp">WebP (Best)</option>
<option value="image/jpeg">JPEG</option>
<option value="image/png">PNG</option>
</select>
</div>
</div>
<!-- ── Upload Zone ── -->
<div class="upload-zone" id="uploadZone">
<div class="upload-icon-wrapper">
<span class="upload-icon">📤</span>
</div>
<div class="upload-title">Drop images here or click to browse</div>
<div class="upload-subtitle">
Supports JPG, PNG, WebP, BMP, TIFF, and more
</div>
<div class="upload-hint">
💡 Tip: For 80MB → 200KB, use the <strong>High</strong> preset with
WebP format
</div>
<input type="file" id="fileInput" accept="image/*" multiple />
</div>
<!-- ── Compact Add Bar (visible when images exist) ── -->
<div class="compact-upload" id="compactUpload" style="display: none">
📁 <span>Add more images</span> (click or drop anywhere here)
<input type="file" id="compactFileInput" accept="image/*" multiple />
</div>
<!-- ── Results Section ── -->
<div id="resultsSection" style="display: none">
<div class="results-header">
<div>
<span class="results-title">Compressed Images</span>
<span class="results-count" id="resultsCount"></span>
</div>
<div class="results-actions">
<button class="btn btn-primary btn-sm" id="compressAllBtn">
⚡ Compress All
</button>
<button class="btn btn-success btn-sm" id="downloadAllBtn">
📦 Download All (ZIP)
</button>
<button class="btn btn-danger btn-sm" id="clearAllBtn">
🗑 Clear All
</button>
</div>
</div>
<div class="image-grid" id="imageGrid"></div>
</div>
<!-- ── Summary Bar ── -->
<div class="summary-bar" id="summaryBar" style="display: none">
<div class="summary-stat">
<span class="summary-stat-label">Total Images</span>
<span class="summary-stat-value" id="sumCount">0</span>
</div>
<div class="summary-stat">
<span class="summary-stat-label">Original Size</span>
<span class="summary-stat-value" id="sumOriginal">0 KB</span>
</div>
<div class="summary-stat">
<span class="summary-stat-label">Compressed Size</span>
<span class="summary-stat-value" id="sumCompressed">0 KB</span>
</div>
<div class="summary-stat">
<span class="summary-stat-label">Total Savings</span>
<span class="summary-highlight" id="sumSavings">0%</span>
</div>
</div>
</div>
<!-- ═══════════════ FOOTER ═══════════════ -->
<div id="footer"></div>
<!-- ═══════════════ TOAST CONTAINER ═══════════════ -->
<div class="toast-container" id="toastContainer"></div>
<!-- Load header component -->
<script>
fetch("components/header.html")
.then((response) => response.text())
.then((data) => {
document.getElementById("header").innerHTML = data;
// Set active nav link based on current URL hash or path
const currentPage = window.location.pathname.split("/").pop(); // "index.html" or "about.html"
const links = document.querySelectorAll(".nav-link");
links.forEach((link) => {
const href = link.getAttribute("href").split("/").pop();
if (href === currentPage) {
link.classList.add("active");
} else {
link.classList.remove("active");
}
});
});
</script>
<!-- Load footer component -->
<script>
fetch("components/footer.html")
.then((response) => response.text())
.then((data) => {
document.getElementById("footer").innerHTML = data;
});
</script>
<!-- ═══════════════ SCRIPTS ═══════════════ -->
<script src="js/index.js"></script>
<script src="js/fab.js"></script>
<script src="js/welcome.js"></script>
<script src="js/analytics.js"></script>
</body>
</html>