AP Image Optimization
Automatic WebP conversion and compression for WordPress.
A free, open-source WordPress plugin that automatically compresses JPEG, PNG, and GIF images, converts them to WebP, and serves modern formats via picture elements with automatic browser fallbacks — all processed on your own server, no external APIs or subscriptions required.
Unoptimized images are silently killing your WordPress performance.
Images account for over 50% of the average webpage's total byte size. Every uncompressed upload, every JPEG served where a WebP would do — they stack up into slower load times, lower Core Web Vitals scores, and higher bounce rates. Most WordPress site owners either pay for an external optimization service month after month, or just ignore the problem entirely. There's a better option.
of page weight is unoptimized images
average file size reduction with WebP
external APIs or subscriptions needed
free & open source forever
Built to solve real problems
Every feature exists for a reason — no bloat, no filler.
Smart Compression
Adjustable quality settings on a 1–100 scale using Imagick (preferred) or GD library. Compress JPEG, PNG, and GIF files to the exact quality level your site demands without visible degradation.
Automatic WebP Conversion
Generates WebP versions of every uploaded image and serves them via picture elements with automatic fallbacks for older browsers. Zero markup changes required on your end.
Bulk Media Library Processing
Optimize your entire existing media library in server-safe batches. Intelligent batch sizing automatically prevents execution timeouts on any hosting environment.
Custom Image Sizes
Create and manage image dimensions directly from the WordPress admin panel. Define exactly what sizes your theme needs without touching functions.php.
Backup & One-Click Restore
Original files are preserved to a dedicated backup directory before every optimization run. Restore any image — or your entire library — with a single click.
CDN Integration
Replace WordPress upload URLs with your CDN base URL for faster global delivery. Works with any CDN provider — Cloudflare, BunnyCDN, Fastly, or a custom domain.
Automatic Lazy Loading
Adds native loading="lazy" attributes to images automatically on activation. Zero configuration required — every image below the fold loads lazily from day one.
Statistics Dashboard
A clean admin dashboard tracks exactly how much storage space you've saved across your media library, with per-image optimization metrics and status indicators.
Simple by design
Install the Plugin
Download from GitHub and upload via the WordPress admin, or install by uploading the ZIP directly. Activates instantly with sensible defaults — no setup wizard required.
Configure Your Settings
Set your compression quality level, enable WebP conversion, configure your CDN URL if needed, and choose whether images auto-optimize on upload or on a manual schedule.
Bulk Optimize & Ship
Run the bulk optimizer on your existing media library and watch the real-time progress dashboard. New uploads are handled automatically from that point forward.
Faster images. No subscriptions.
AP Image Optimization is free, open source under GPL-2.0+, and does everything on your own server. No API keys. No monthly fees. No image data leaving your WordPress install.