=== BinsOptimizer - Instant Image Optimizer, Compression & WebP Converter === Contributors: binsaifullah Tags: image optimizer, webp converter, image compression, compress images, webp Requires at least: 6.0 Tested up to: 7.0 Requires PHP: 7.4 Stable tag: 1.4.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html The fastest WordPress image optimizer. Auto-convert JPEG, PNG, SVGs (if you allow) to WebP and compress images on upload. == Description == **BinsOptimizer** is the fastest, most private way to optimize images in WordPress. Unlike cloud-based image optimizers, BinsOptimizer converts and compresses your images **directly in the browser** — before they ever hit your server. No API keys, no monthly fees, no privacy risks. Every JPEG and PNG you upload is automatically converted to **WebP** — the modern image format recommended by Google — and resized to your chosen maximum dimension. The result is smaller file sizes, faster page loads, and better Core Web Vitals scores, all without touching your server resources. **Why choose BinsOptimizer over other image optimizer plugins?** Most WordPress image optimization plugins send your images to external cloud servers for processing, which is slow, costs money, and raises data privacy concerns. BinsOptimizer does everything on the user's own machine using modern browser APIs, making it instant, free, and completely private. ### Video Tutorial [youtube http://www.youtube.com/watch?v=_K4j32bjBck] = Key Features = * **Automatic WebP Conversion**: Convert JPEG, PNG, and SVGs (if you allow) images to WebP on upload for up to 80% smaller file sizes and better Google PageSpeed scores. * **Client-Side Image Compression**: All image processing happens in the browser — zero server load, zero cloud costs. * **Smart Image Resizing**: Automatically downscale oversized images to your chosen maximum width or height during upload. * **No API Key Required**: Fully self-contained. No third-party services, no subscriptions, no limits. * **100% Private**: Your images are never sent to an external server. Everything stays on your machine until the optimized file is uploaded. * **Zero Queue, Instant Results**: Optimization happens in real time as you upload — no background jobs or waiting. * **Media Library Integration**: View compression savings, original vs. optimized file sizes, and conversion time directly in the WordPress Media Library. * **Works Everywhere in WordPress**: Compatible with the Block Editor (Gutenberg), Classic Editor, drag-and-drop uploads, and featured image pickers. * **SVGs Upload**: Allow to upload SVGs file securely and if you want you can optimize and convert them on upload. == Installation == 1. Upload the plugin files to the `/wp-content/plugins/binsaif-instant-image-optimizer` directory, or install the plugin through the WordPress plugins screen directly. 2. Activate the plugin through the 'Plugins' screen in WordPress. 3. Navigate to **Settings > BinsOptimizer** to configure your compression levels and constraints. 4. Start uploading images to your Media Library or Posts - they will be optimized automatically! == Frequently Asked Questions == = Does this require an API key? = No. Since all optimization happens in your browser, there are no external services to connect to and no API keys required. = Does it optimize existing images? = Currently, the plugin focuses on optimizing images at the moment of upload. Bulk optimization for your existing library is planned for a future update. = Is it compatible with other media plugins? = Yes, it works by intercepting the upload process at the browser level, making it compatible with most WordPress themes and plugins that use the standard WordPress media uploader. == Screenshots == == Changelog == = 1.4.4 = * New: Format-specific quality sliders — set separate WebP output quality for JPEG, PNG, and SVG source files instead of a single blunt quality setting. * Improvement: SVG quality slider appears only when SVG optimization is enabled, keeping the UI clean. * Improvement: Compression Playground now respects per-format quality settings when previewing conversions. = 1.4.3 = * New: WordPress Thumbnail Generation control — a master toggle lets you disable all intermediate image sizes on upload to save disk space. * New: Per-size toggles — selectively disable individual image sizes (thumbnail, medium, medium_large, large, 1536x1536, 2048x2048) while keeping the rest active. * Improvement: File Size media column is now sortable. = 1.4.2 = * Added: Reset Default settings button is added * Checked: compatibility with WordPress 7.0 = 1.4.1 = * Redesign: Premium administrative settings and dashboard redesign with elegant glassmorphic statistics widgets, modern sidebar navigation layout, responsive diagnostics, and widescreen compatibility. * New: Dynamic real-time calculation of direct space savings, optimized image count, efficiency ratios, and conversion speed directly from your database. * New: High-fidelity, local browser-based drag-and-drop Image Optimizer Sandbox Playground for real-time before/after side-by-side compression previews. * Improvement: Beautifully redesigned settings save buttons with animated feedback, state indicators, and sticky tab footers. * Improvement: Expanded responsive widescreen dashboard layouts to full-width alignment (max-width: 100%). = 1.4.0 = * New: "Optimize It" button in the Media Library list view — click to optimize any existing JPEG, PNG, or SVG attachment on demand without re-uploading. * New: File Size column in the Media Library — shows the current on-disk size of every attachment. Can be toggled off in Settings. * Improvement: Media Library column CSS moved to a dedicated stylesheet (`assets/css/media.css`) and properly enqueued, keeping PHP templates clean. * Fix: "Show Filesize Column" toggle was placed outside the settings form and never saved correctly — now included in the form submission. = 1.3.0 = * New: Secure SVG upload support — administrators can now enable SVG uploads for specific user roles via **Settings > BinsOptimizer**. * New: Role-based SVG upload permission — choose exactly which user roles (Administrator, Editor, Author, etc.) are allowed to upload SVG files. * New: Server-side SVG sanitization — every SVG is cleaned with a DOMDocument-based sanitizer before it is stored. Strips `