Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: build/sanitize-png-files.sh

Issue 11881012: Remove all ancillary chunks except for tRNS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comments Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/sanitize-png-files.sh
diff --git a/build/sanitize-png-files.sh b/build/sanitize-png-files.sh
index 62faf6bd6a080273ba3679a582853376d64ea3a2..f13a191e6127f328ee1fc58092a03cc9da2e9bdf 100755
--- a/build/sanitize-png-files.sh
+++ b/build/sanitize-png-files.sh
@@ -19,8 +19,9 @@ function sanitize_file {
echo -ne "$1\r"
local file=$1
local name=$(basename $file)
- pngcrush -d $TMP_DIR -brute -reduce -rem text -rem mkBT \
- -rem mkTS $file > /dev/null
+ # -rem alla removes all ancillary chunks except for tRNS
+ pngcrush -d $TMP_DIR -brute -reduce -rem alla $file > /dev/null
+
mv "$TMP_DIR/$name" "$file"
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698