[gnome-themes-extra] Use zopflipng to optimize PNGs



commit 3d8471ace5c8d4bb4e2ccffd661da35546b13859
Author: Ville Skyttä <ville skytta iki fi>
Date:   Sat Jul 2 10:09:29 2016 +0300

    Use zopflipng to optimize PNGs

 themes/Adwaita/gtk-2.0/render-assets-external.sh | 4 ++--
 themes/Adwaita/gtk-2.0/render-assets.sh          | 4 ++--
 themes/HighContrast/create-highcontrast.c        | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/themes/Adwaita/gtk-2.0/render-assets-external.sh 
b/themes/Adwaita/gtk-2.0/render-assets-external.sh
index 4e64692f..5819face 100755
--- a/themes/Adwaita/gtk-2.0/render-assets-external.sh
+++ b/themes/Adwaita/gtk-2.0/render-assets-external.sh
@@ -1,7 +1,7 @@
 #! /bin/bash
 
 INKSCAPE="/usr/bin/inkscape"
-OPTIPNG="/usr/bin/optipng"
+ZOPFLIPNG="/usr/bin/zopflipng"
 
 SRC_FILE="assets-external.svg"
 ASSETS_DIR="assets"
@@ -18,7 +18,7 @@ else
               --export-id-only \
               --export-background-opacity=0 \
               --export-png=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null \
-    && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png 
+    && $ZOPFLIPNG -ym $ASSETS_DIR/$i.png $ASSETS_DIR/$i.png
 fi
 done
 exit 0
diff --git a/themes/Adwaita/gtk-2.0/render-assets.sh b/themes/Adwaita/gtk-2.0/render-assets.sh
index abc5e938..e6192db2 100755
--- a/themes/Adwaita/gtk-2.0/render-assets.sh
+++ b/themes/Adwaita/gtk-2.0/render-assets.sh
@@ -1,7 +1,7 @@
 #! /bin/bash
 
 INKSCAPE="/usr/bin/inkscape"
-OPTIPNG="/usr/bin/optipng"
+ZOPFLIPNG="/usr/bin/zopflipng"
 
 SRC_FILE="assets.svg"
 ASSETS_DIR="assets"
@@ -18,7 +18,7 @@ else
               --export-id-only \
               --export-background-opacity=0 \
               --export-png=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null \
-    && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png 
+    && $ZOPFLIPNG -ym $ASSETS_DIR/$i.png $ASSETS_DIR/$i.png
 fi
 done
 exit 0
diff --git a/themes/HighContrast/create-highcontrast.c b/themes/HighContrast/create-highcontrast.c
index 3e3383a6..5113aa49 100644
--- a/themes/HighContrast/create-highcontrast.c
+++ b/themes/HighContrast/create-highcontrast.c
@@ -80,7 +80,7 @@ ensure_dest_path (GFile *file,
 static void
 optimize_png (const gchar *png_path)
 {
-  gchar *cmd = g_strconcat ("optipng -quiet", " ", png_path, NULL);
+  gchar *cmd = g_strconcat ("zopflipng -ym ", png_path, " ", png_path, NULL);
   g_spawn_command_line_async (cmd, NULL);
   g_free (cmd);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]