Takopic – Local Image Optimizer | Convert WebP & AVIF

Takopic – Local Image Optimizer | Convert WebP & AVIF

Details
View on WordPress

GitHub | Documentation | Changelog | Support

Takopic optimises the images of your media library with the libraries of your own server: jpegoptim, optipng or oxipng, pngquant, cwebp and avifenc, or GD and Imagick for the WebP and AVIF formats. Free and unlimited, no API key, no quota: your images never leave your server.

Optimisation

  • Compresses JPG and PNG images in place, and creates their WebP and AVIF versions, kept only when lighter.
  • Keeps the original images, to restore them at any time.
  • Strips the metadata (camera, date, GPS position), but keeps the colour profile when the colours need it.
  • Handles CMYK JPGs and the photos stored sideways.

Media library

  • Optimises the images on upload, or the whole library in the background, with pause and cancel.
  • Re-optimises the images left behind by new settings or new image sizes of the theme.
  • Shows the status, the errors and the bytes saved of each image, and optimises or restores it in one click.

On the site

  • Serves AVIF and WebP with the JPG or PNG as fallback: in a <picture> element, or from the server with rewrite rules (Apache, nginx).
  • Tests the delivery.

For developers

  • takopic_image() and takopic_image_sources() give the <picture> of an image or its srcsets, in your own templates.
  • WP-CLI: wp takopic run, clean, restore, stats and health.
  • Filters for the folder of the originals, the priority and threads of the libraries, the pace of the background jobs and the path of a library.

All of them are documented in the README on GitHub.

Privacy

  • No external request: no API, no tracking. The delivery test only requests the images of the site, from its CDN if they are served by one.
  • No metadata: the optimised images lose it, GPS position included. The originals keep it.
  • Private originals: kept in uploads/takopic/originals-{key}/, under a key drawn at random for each site. Takopic closes the folder to the web with a .htaccess on Apache and LiteSpeed; on nginx, add the rules of the Delivery tab. Test the delivery checks it on both.
  • Originals out of the web root: set their folder with the takopic_backup_dir filter, before optimising any image. Takopic does not move the originals already kept: move the folder yourself when you change it.

Credits

Takopic is developed by Clément Gayot.

It started as a fork of Squidge, created by Ainsley Clark in 2021 with contributions from Roman K, Rohinish and karbivskij, and was largely rewritten in 2026. Many thanks to them for the foundations: the idea of relying on the native libraries of the server comes from Squidge.

Thanks also to Media Optimizer by YooHW for some ideas: the menu, the delivery page, the display of the bytes saved, and more.

Details

Plugin code:
takopic
Plugin version:
1.0.0
Outdated:
No
WP version:
6.2 or higher
PHP version:
8.2 or higher
Test up to WP version:
7.1.4
Total installations:
0
Last updated:
2026-11-08
Rating:
Times rated:
0
avif
compress-images
image-optimization
performance
webp