Closed ghost closed 3 years ago
Thanks for catching this, I just pushed a fix and will update the version.
Are you doing something specific calling addFrame
directly instead of encodeImage
or encodeAnimation
? If you're adding multiple frames and not using encodeAnimation, you'll want to set pngEcoder.isAnimated = true
prior to calling pngEncoder.addFrame()
, so that it knows to add the animation control chunk to the PNG data. And don't forget to call pngEncoder.finish()
after you're done calling addFrame, so it writes the end data chunk.