diff options
Diffstat (limited to 'render-icon-theme.py')
-rwxr-xr-x | render-icon-theme.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/render-icon-theme.py b/render-icon-theme.py index a36f3c257..4b26c68e7 100755 --- a/render-icon-theme.py +++ b/render-icon-theme.py @@ -7,12 +7,16 @@ import subprocess INKSCAPE = '/usr/bin/inkscape' OPTIPNG = '/usr/bin/optipng' +ZOPFLIPNG = '/usr/bin/zopflipng' SRC = os.path.join('.', 'src', 'fullcolor') inkscape_process = None def optimize_png(png_file): - if os.path.exists(OPTIPNG): + if os.path.exists(ZOPFLIPNG): + process = subprocess.Popen([ZOPFLIPNG, '-ym', png_file]) + process.wait() + elif os.path.exists(OPTIPNG): process = subprocess.Popen([OPTIPNG, '-quiet', '-o7', png_file]) process.wait() |