Jappie Klooster 5b9f1cf6ba pelican -> Pelican před 7 roky
..
Readme.md 5b9f1cf6ba pelican -> Pelican před 7 roky
__init__.py 65c4fe2db2 FIXED: https://github.com/getpelican/pelican-plugins/pull/31#issuecomment-18748236 před 11 roky
optimize_images.py 1e9d21f69a Added svgo for svg optimization před 7 roky

Readme.md

Optimize Images Plugin For Pelican

This plugin applies lossless compression on JPEG and PNG images, with no effect on image quality. It uses jpegtran, OptiPNG and svgo. It assumes that all of these tools are installed on system path.

Installation

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.

Usage

The plugin will activate and optimize images upon finalized signal of Pelican.