From 1dd99e57ed0efb9019b031feab9a4e76662f1d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Endre=20Sim=C3=B3?= Date: Mon, 4 Sep 2017 14:20:25 +0300 Subject: [PATCH] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a9a2811..118f112 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,13 @@ The command below will generate the blurred version of the source image. This wi ```bash $ stackblur -in image/sample.png -out image/output.png -radius 10 ``` -To visualize the bluring process the cli command supports the `-gif` flag, which if is set to true it will generate a gif image. For the parallel execution of the the bluring process and the gif visualization `goroutines` are used. However if you wish only to generate the blured image, because of API constraints you need to create a go channel and use this as the last parameter of the `Process` method. Something like the code below: +To visualize the bluring process the cli command supports the `-gif` flag, which if is set to true it will generate a gif image. For the parallel execution of the the bluring process and the gif visualization `goroutines` are used. + +

+ +

+ +However if you wish only to generate the blured image, because of API constraints you need to create a go channel and use this as the last parameter of the `Process` method. Something like the code below: ```Go var done chan struct{} = make(chan struct{}, *radius)