From 73a2360d8ec19c939328eda82b3c12824b2f7a49 Mon Sep 17 00:00:00 2001 From: atennert Date: Thu, 21 Jun 2018 17:17:00 +0200 Subject: [PATCH] doc: change example with respect to other convert options Input and output are usually defined at the end of the convert command. If '-' for stdin is not listed after the options, then for instance '-background none' will not work. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38bed7d..32bfabb 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Not all CLI programs support piping. In fact, many newer ones don't. Some use to ensure piping is supported. The following example pipes image files to ImageMagick's `convert`. In the case - of `convert`, you must specify a `-` before arguments and after arguments if + of `convert`, you must specify two `-` after the arguments if you wish to use stdin and stdout, respectively. ```javascript @@ -28,9 +28,9 @@ gulp.src("./src/images/*.{jpg,png,gif}", { buffer: false }) .pipe(spawn({ cmd: "convert", args: [ - "-", "-resize", "50%", + "-", "-" ], // optional