100KB Extension v1.1.1: Compress & resize files in 0ms directly in Google Chrome
Compress user form uploads down to exact target KB limits (50KB, 100KB) directly in visitor browsers before hitting your WordPress server disk or Media Library.
Traditional WordPress plugins like Smush or EWWW run heavy ImageMagick or GD library scripts on your PHP server, causing high CPU spikes and 504 Gateway Timeout errors during user form submissions. Our Web Component widget executes 100% locally inside the visitor's browser RAM before the file is uploaded.
Frees up PHP worker processes for site speed.
Saves up to 85% disk space on hosting accounts.
Files meet exact KB caps before submission.
Paste this snippet into your theme's functions.php or use a plugin like "Header Footer Code Manager".
<?php
// Add this line to your WordPress theme's functions.php or Header Footer Code Manager plugin
function add_100kb_compression_widget() {
echo '<script src="https://www.100kb.in/widget.js" defer></script>';
}
add_action('wp_head', 'add_100kb_compression_widget');
?><!-- Contact Form 7 or Gravity Forms Custom HTML Block -->
<label> Upload Your Passport Photo (Auto-Compressed to <100KB):
<100kb-uploader
target-kb="100"
format="jpeg"
auto-compress="true"
label="Choose Photo">
</100kb-uploader>
</label><!-- WooCommerce Product Extra Options / File Upload Field -->
<div class="form-row form-row-wide">
<label for="id_proof_upload">Attach ID Proof (Required Max 50KB):</label>
<input
type="file"
id="id_proof_upload"
name="id_proof_document"
data-100kb="50"
data-100kb-format="jpeg"
required
/>
</div>