
Takopic – Local Image Optimizer | Convert WebP & AVIF
v1.0.1Clément Gayot · 2026年11月8日 上架
Squeezes images. Spills no ink, sends no bill. JPG, PNG, WebP and AVIF optimised on your own server, free and unlimited.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 298
- 最近更新
- 2026年11月9日
贡献者
截图





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()andtakopic_image_sources()give the<picture>of an image or its srcsets, in your own templates.- WP-CLI:
wp takopic run,clean,restore,statsandhealth. - 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.htaccesson Apache and LiteSpeed; on nginx, add the rules of the Delivery tab.Test the deliverychecks it on both. - Originals out of the web root: set their folder with the
takopic_backup_dirfilter, 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.