allow trailing data
This commit is contained in:
parent
db4913635d
commit
4d2d780a51
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue