|
@@ -2,11 +2,12 @@ Optimize Images Plugin For Pelican
|
|
==================================
|
|
==================================
|
|
|
|
|
|
This plugin applies lossless compression on JPEG and PNG images, with no
|
|
This plugin applies lossless compression on JPEG and PNG images, with no
|
|
-effect on image quality. It uses [jpegtran][1] and [OptiPNG][2]. It assumes
|
|
|
|
-that both of these tools are installed on system path.
|
|
|
|
|
|
+effect on image quality. It uses [jpegtran][1], [OptiPNG][2] and [svgo][3].
|
|
|
|
+It assumes that all of these tools are installed on system path.
|
|
|
|
|
|
[1]: http://jpegclub.org/jpegtran/ "jpegtran"
|
|
[1]: http://jpegclub.org/jpegtran/ "jpegtran"
|
|
[2]: http://optipng.sourceforge.net/ "OptiPNG"
|
|
[2]: http://optipng.sourceforge.net/ "OptiPNG"
|
|
|
|
+[3]: https://github.com/svg/svgo "SVGO"
|
|
|
|
|
|
|
|
|
|
Installation
|
|
Installation
|
|
@@ -23,4 +24,4 @@ Then use as follows by adding the following to your settings.py:
|
|
Usage
|
|
Usage
|
|
-----
|
|
-----
|
|
The plugin will activate and optimize images upon `finalized` signal of
|
|
The plugin will activate and optimize images upon `finalized` signal of
|
|
-pelican.
|
|
|
|
|
|
+pelican.
|