Permalink
Browse files

Add optipng filter, which compresses PNG filters.

Currently, it even makes "assets" smaller.
  • Loading branch information...
1 parent 1134f95 commit d94addd898362750fde770243d20d25dfbb26e3d Kay Hayen committed with Sep 30, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 nikola/filters.py
View
@@ -60,3 +60,6 @@ def runinplace(command, infile):
def yui_compressor(infile):
return runinplace(r'yui-compressor %1 -o %2', infile)
+
+def optipng(infile):
+ return runinplace(r"optipng -preserve -o2 -quiet %1", infile)

0 comments on commit d94addd

Please sign in to comment.