From 66cf0b5163b5bce7d596447177f992d745b5b306 Mon Sep 17 00:00:00 2001 From: huaying1988 Date: Wed, 31 Jan 2018 13:43:42 +0800 Subject: [PATCH] Update index.html open file in binary mode or get a wrong file on windows --- doc/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/index.html b/doc/index.html index 39a7428..275e5e3 100644 --- a/doc/index.html +++ b/doc/index.html @@ -2376,7 +2376,7 @@

GIF animation

blue[i] = im:colorAllocate(0, 0, 120+6*i) end -fp = io.open("out.gif", "w") +fp = io.open("out.gif", "wb") assert(fp, "Failed to open file for writting") fp:write(im:gifAnimBeginStr(true, 0))