From be29f201596d217b2837cac22f3ebd07833201cb Mon Sep 17 00:00:00 2001 From: matejcik Date: Thu, 28 Nov 2019 14:00:29 +0100 Subject: [PATCH] core: minor documentation fix --- docs/misc/toif.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/misc/toif.md b/docs/misc/toif.md index a343be47e..6227e2f19 100644 --- a/docs/misc/toif.md +++ b/docs/misc/toif.md @@ -48,9 +48,8 @@ and no header. This can be achieved with ZLIB library by using the following: ```python import zlib -z = zlib.compressobj(level=9, wbits=10) +z = zlib.compressobj(level=9, wbits=-10) zdata = z.compress(pixeldata) + z.flush() -zdata = zdata[2:-4] # strip header and checksum ``` ## Tools