From deece664b1b4bd55bff20a826985513fb523cc23 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 21 Jul 2018 05:27:29 +0100 Subject: [PATCH] optipng: add preservation option (#2206) --- pages/common/optipng.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pages/common/optipng.md b/pages/common/optipng.md index b20b6827de..f482e57409 100644 --- a/pages/common/optipng.md +++ b/pages/common/optipng.md @@ -4,20 +4,24 @@ - Compress a PNG with default settings: -`optipng {{file.png}}` +`optipng {{path/to/file.png}}` - Compress a PNG with best compression: -`optipng -o{{7}} {{file.png}}` +`optipng -o{{7}} {{path/to/file.png}}` - Compress a PNG with fastest compression: -`optipng -o{{0}} {{file.png}}` +`optipng -o{{0}} {{path/to/file.png}}` - Compress a PNG and add interlacing: -`optipng -i {{1}} {{file.png}}` +`optipng -i {{1}} {{path/to/file.png}}` + +- Compress a PNG and preserve all metadata (including file timestamps): + +`optipng -preserve {{path/to/file.png}}` - Compress a PNG and remove all metadata: -`optipng -strip all {{file.png}}` +`optipng -strip all {{path/to/file.png}}`