Insert chunk before IDAT. PNG specs allows to drop all chunks after IDAT, so we have to insert our custom chunks right before it. Use Chunk.create() to create new chunk, and then insertChunk() to add it. Return true if we did replacement.
See Implementation
Insert chunk before IDAT. PNG specs allows to drop all chunks after IDAT, so we have to insert our custom chunks right before it. Use Chunk.create() to create new chunk, and then insertChunk() to add it. Return true if we did replacement.