pngj
pngj copied to clipboard
write text chunks before IDAT
Some readers expect the text chunks to be written before the IDAT chunk. This also allows to parse them without the need to skip to the end of the file. Apache commons imaging also writes them before IDAT.
So this PR adapts this behavior. The custom chunk test needed to be adapted since the chunk order changed.