minor update

This commit is contained in:
andri lim 2017-05-19 22:07:32 +07:00
parent b53562a281
commit 44347c05c0
4 changed files with 6 additions and 6 deletions

View File

@ -25,9 +25,9 @@
# part of nimPDF sister projects
#-------------------------------------
import streams, endians, tables, hashes, math, nimz
import streams, endians, tables, hashes, math
import private.buffer
import private.buffer, private.nimz
const
NIM_PNG_VERSION = "0.1.8"
@ -769,7 +769,7 @@ proc createChunk(png: PNG, chunkType: PNGChunkType, data: string, crc: uint32):
if result != nil:
result.initChunk(chunkType, data, crc)
proc makePNGDecoder*(): PNGDecoder =
var s: PNGDecoder
new(s)

View File

@ -1014,8 +1014,8 @@ proc testAutoColorModels() =
proc testFilter() =
echo "test Filter"
let input = "tester" & DirSep & "tfilter.png"
let temp = "tester" & DirSep & "temp.png"
let input = "tfilter.png"
let temp = "temp.png"
let png = loadPNG32(input)
discard savePNG32(temp, png.data, png.width, png.height)
let png2 = loadPNG32(temp)

View File

@ -85,4 +85,4 @@ proc convert(dir: string) =
let data2 = readFile(bmpName)
assert data1 == data2
convert("suite")
convert(".." & DirSep & "suite")