manifest / performance / compress-pics
CompressPics
Compress png images using PNGQuant
by Abel Schupp · github.com/clarifynl/compress-pics · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/clarifynl/compress-pics/archive/refs/heads/main.zipFrom the readme
CompressPics
A Wordpress plugin to compress png-images.
Requirements
An Ubuntu server with pngquant installed.
Hooks
CompressPics hooks into wpgenerateattachmentmetadata to compress the images once they're saved or updated. Once ResponsivePics resized the images and responsivepicsfilesavedlocal fires, CompressPics will compress the newly generated images.
CLI
It is possible to force a compression through the WP CLI through a set of commands.
To compress the featured image of a post you can insert the post id:
wp cpics compress --post=
To specify which image to compress you can insert the image id:
wp cpics compress --image=
In order to compress all images asociated to a product and its variations insert the product id:
wp cpics compress --product=
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.