Imagio · Smart Compressor
lossless magicDrag & drop image here
or
No file selected (PNG, JPG, WEBP up to 20MB)
Live preview
Compressed preview will appear here
0 KB
0 KB
Compression quality
75%
~0 KB
Convert to WordPress plugin – step by step
1
Create plugin folder – e.g.
/wp-content/plugins/imagio-compress/ and main file imagio-compress.php with plugin header.2
Embed tool via shortcode – copy entire HTML/CSS/JS into a output buffer function and register shortcode, e.g.
add_shortcode('imagio_compressor', 'render_imagio').3
Separate assets (optional) – move inline JS/CSS to external files and enqueue with
wp_enqueue_script / wp_enqueue_style.4
Add settings link – use
plugin_action_links_ filter to point to a options page (or just keep it simple).5
Security & dependencies – escape output, check user permissions if you add admin area. For frontend, it's safe.
6
Package & test – zip folder and upload via WordPress plugin installer. Use
[imagio_compressor] in any post/page.
Pro tip: use
wp_localize_script to pass AJAX url if you want server-side fallback, but this tool works 100% client-side.
Pure browser-based compression · no upload needed · privacy first
