Kraken.io Image Optimizer – Compress, Convert to WebP & AVIF, Resize & Bulk Optimize source code
By Kraken.io, on WordPress.org since 2014. 10,000+ active installs.
⚡ Compress, resize and convert your WordPress images to WebP, AVIF and more — automatically. Faster pages, smaller files, same quality. Below is its source code for every one of its 42 releases, what changed in the latest one, and how often it ships.
What changed in 3.1.0
Released Nov 16, 2026, 4 months after 3.0.3- New: automatic PDF optimization is now opt-in. Enable “Optimize PDF uploads” in Settings → Kraken.io to send PDF uploads (and their generated preview thumbnails) to Kraken; disabled by default so existing installs won’t unexpectedly consume quota on PDFs. Individual PDFs can always be optimized by hand from the Media Library.
- New: “PDF compression level” setting — Automatic (default), Screen, Ebook, Printer or Prepress — to choose how strongly PDFs are compressed.
- Fixed: when “Convert uploads to” is set, uploaded PDFs are no longer converted into an image (which replaced the original PDF file). Conversion now applies to images only; PDFs keep their format and are optimized as PDFs.
- Fixed: the “Resize” setting is no longer applied to PDFs. Resizing ran the document through an image resizer, turning its text into pixels and often making the file larger.
- Fixed: the preview images WordPress generates for PDFs are now optimized too, and optimizing a PDF by hand no longer fails with “The image file could not be found on the server.”
- Fixed: an optimized file is never saved over the original when it is not smaller (some small, text-only PDFs came back larger).
277 files changed since 3.0.3: 19 modified, 129 added, 129 removed.
- assets/dist/kraken.asset.php modified, same size
- assets/dist/kraken.js modified, +135 bytes
- includes/class-kraken-io-ajax.php modified, +13 bytes
- includes/class-kraken-io-background-process.php modified, +13 bytes
- includes/class-kraken-io-optimization.php modified, +3,993 bytes
- includes/class-kraken-io-settings.php modified, +3,345 bytes
- includes/class-kraken-io-stats.php modified, +158 bytes
- includes/class-kraken-io-summary.php modified, +338 bytes
- includes/class-kraken-io.php modified, +787 bytes
- kraken.php modified, +13 bytes
And 267 more.
Compare 3.0.3 with 3.1.0Release history
42 releases since February 2014- 3.1.0 Nov 16, 2026 New: automatic PDF optimization is now opt-in. Enable “Optimize PDF uploads” in Settings → Kraken.io to send PDF uploads (and their generated preview thumbnails) to Kraken; disabled by default so existing installs won’t unexpectedly consume quota on PDFs. Individual PDFs can always be optimized by hand from the Media Library.
- 3.0.3 Jun 22, 2026 New: the plugin is now translated into 64 locales, covering 39 languages — Albanian (Shqip), Arabic (العربية), Belarusian (Беларуская), Bosnian (Bosanski), Bulgarian (Български), Chinese (中文 — Simplified, Traditional and Hong Kong), Croatian (Hrvatski), Czech (Čeština), Danish (Dansk), Dutch (Nederlands — Netherlands and Belgium), Estonian (Eesti), Finnish (Suomi), French (Français — France, Canada and Belgium), German (Deutsch — informal, formal, Austrian and Swiss), Greek (Ελληνικά), Hebrew (עברית), Hungarian (Magyar), Icelandic (Íslenska), Indonesian (Bahasa Indonesia), Italian (Italiano), Japanese (日本語), Korean (한국어), Latvian (Latviešu), Lithuanian (Lietuvių), Macedonian (Македонски), Norwegian (Norsk — Bokmål and Nynorsk), Polish (Polski), Portuguese (Português — Portugal, Brazil and Angola), Romanian (Română), Russian (Русский), Serbian (Српски), Slovak (Slovenčina), Slovenian (Slovenščina), Spanish (Español — Spain, Mexico, Argentina, Chile, Colombia, Costa Rica, Dominican Republic, Ecuador, Guatemala, Honduras, Peru, Puerto Rico, Uruguay and Venezuela), Swedish (Svenska), Thai (ไทย), Turkish (Türkçe), Ukrainian (Українська) and Vietnamese (Tiếng Việt).
- 3.0.2 Jun 18, 2026 Security: tightened permission checks so users can only optimize, convert or reset media they are allowed to edit.
- 3.0.1 Jun 17, 2026 Performance and reliability improvements to the Kraken.io API connection, with broader server compatibility.
- 3.0.0 Jun 17, 2026 New: optimization support for WebP, AVIF, HEIC, HEIF and PDF (in addition to JPEG, PNG and GIF).