Dopic Exact-KB Image Compressor for WebP

Description

Dopic Exact-KB Image Compressor for WebP is a privacy-first, 100% local media upload gatekeeper built by Dopic Studio. Instead of guessing vague quality percentages or paying for third-party cloud compression APIs, set an exact maximum KB budget (such as 150 KB or 200 KB) and let your own WordPress server enforce it automatically on every upload.

What Makes This Plugin Different

  • Exact Target KB Budget Cap (Binary-Search Quality Fitting): Set a hard file-size ceiling in KB (e.g., 150 KB or 200 KB for Core Web Vitals LCP images). On upload, the plugin locally binary-searches for the highest visual quality that stays under your KB budget.
  • Smart Size Guard (Zero Negative Optimization): Small or already-compressed images sometimes become larger when converted to WebP. Smart Size Guard compares byte sizes before replacing and automatically keeps the smaller file.
  • EXIF Auto-Orientation & GPS Privacy Strip: Reads phone EXIF orientation so portrait photos never rotate sideways, then strips GPS coordinates and camera metadata during local GD re-encoding.
  • Automatic Local WebP Conversion & Max-Dimension Resize: Converts uploaded JPG and PNG files to .webp and proportionally downscales oversized camera uploads (e.g., 4000px 2048px) using native PHP GD.
  • Media Library Savings Column & Dashboard Totals: View exact before/after file sizes, percentage saved, and KB-cap badges directly in the Media Library list view.
  • 100% Local & Privacy-First: Zero external API calls, zero accounts, zero monthly quotas, and zero image uploads to third-party servers.

Need standalone browser-based utilities such as exact 20KB/50KB compression, AI background removal, or official passport photo sizing? Visit Dopic Online Image Studio.

Installation

  1. Upload the dopic-local-webp-image-optimizer folder to /wp-content/plugins/ or install directly through the WordPress Plugins screen.
  2. Activate the plugin via the Plugins menu.
  3. Configure your Target Max File Size (KB), Smart Size Guard, and WebP options under Settings Dopic Image Compressor.

FAQ

How is this different from standard image optimization plugins?

Most image optimizers rely on fixed quality percentages or external cloud APIs with monthly credit limits. This plugin enforces a strict exact KB file-size cap locally via binary-search quality fitting, includes a Smart Size Guard to prevent negative optimization, and strips GPS/EXIF metadata automatically—all 100% on your own server.

Does this plugin upload my images to third-party servers?

No. All KB-budget compression, WebP conversion, resizing, and EXIF stripping happen 100% locally on your WordPress server using native PHP GD.

What happens if a converted WebP file is larger than my original image?

With Smart Size Guard enabled (on by default), the plugin discards the larger candidate and keeps your smaller original image.

Are there any monthly limits or API keys required?

No. Unlimited local optimization with zero API keys, subscriptions, or external accounts required.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Dopic Exact-KB Image Compressor for WebP” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1.0

  • Added Exact Target KB Budget Cap with local binary-search quality fitting.
  • Added Smart Size Guard to prevent negative optimization when converted output is larger than the original.
  • Added automatic EXIF orientation correction before stripping GPS/camera metadata.
  • Added Media Library “Dopic Savings” column and total storage saved summary in Settings.
  • Added quick Settings action link on the Plugins screen.

1.0.0

  • Initial release with automatic JPG/PNG to WebP conversion, quality control, and max-dimension resizing.