From 2f07344cb86640f9ba74b281f4b040fe12b7ffc7 Mon Sep 17 00:00:00 2001 From: Alex Eidt Date: Fri, 16 Sep 2022 08:32:45 -0700 Subject: [PATCH] Updated README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 40cc973..1e00ab9 100644 --- a/README.md +++ b/README.md @@ -157,14 +157,14 @@ for webcam.Read() && count < 1000 { Create a gif from a series of `png` files enumerated from 1 to 10 that loops continuously with a final frame delay of 1000 centiseconds. ```go -w, h, img, _ := vidio.Read("1.png") // Get frame dimensions from first image +w, h, _, _ := vidio.Read("1.png") // Get frame dimensions from first image options := vidio.Options{FPS: 1, Loop: 0, Delay: 1000} gif, _ := vidio.NewVideoWriter("output.gif", w, h, &options) defer gif.Close() for i := 1; i <= 10; i++ { - w, h, img, _ := vidio.Read(strconv.Itoa(i)+".png") + w, h, img, _ := vidio.Read(fmt.Sprintf("%d.png", i)) gif.Write(img) } ```