manifest / performance / image-factory
Image Factory
Advanced real-time image optimization with mozjpeg on your server - WordPress plugin
by Viktor Szépe · github.com/szepeviktor/image-factory · website
★ 7stars
2forks
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/szepeviktor/image-factory/archive/refs/heads/master.zipDeclares an update source (https://github.com/szepeviktor/image-factory), so updates arrive through the plugin's own updater.
From the readme
Image Factory
Advanced real-time image optimization with mozjpeg on your server.
This project uses JPEG Archive by Daniel G. Taylor
which depends on mozjpeg, an improved JPEG encoder.
Install dependencies and background worker
Install init script and options
Source: https://github.com/asaif/socat-init
Replace www-data (in 3 places) with the PHP user.
Optional second instance.
Setting Socket path
The Socket path option is on the Settings / Media page.
Or you could add a define to your wp-config.php:
Manual test
Now upload a JPEG image to Media Library and watch syslog:
tail -f /var/log/syslog
TODO
Support systemd.