allow trailing data

This commit is contained in:
Ryan Oldenburg 2021-05-09 17:21:36 -05:00
parent db4913635d
commit 4d2d780a51

View file

@ -415,7 +415,7 @@ proc decodePng*(data: seq[uint8]): Image =
prevChunkType = chunkType
if pos == data.len:
if pos == data.len or prevChunkType == "IEND":
break
if prevChunkType != "IEND":