|
|
%!s(int64=13) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| Readme.md | %!s(int64=13) %!d(string=hai) anos | |
| __init__.py | %!s(int64=13) %!d(string=hai) anos | |
| optimize_images.py | %!s(int64=13) %!d(string=hai) anos | |
This plugin applies lossless compression on JPEG and PNG images, with no effect on image quality. It uses jpegtran and OptiPNG. It assumes that both of these tools are installed on system path.
To enable, ensure that optimize_images.py is put somewhere that is accessible.
Then use as follows by adding the following to your settings.py:
PLUGIN_PATH = 'path/to/pelican-plugins'
PLUGINS = ["optimize_images"]
PLUGIN_PATH can be a path relative to your settings file or an absolute path.
The plugin will activate and optimize images upon finalized signal of
pelican.