Function encodePng

  • Creates a PNG buffer from an image.

    Parameters

    • image: Image | Mask

      The image instance.

    • Optional options: PngEncoderOptions

      PNG encoding options.

    Returns Uint8Array

    The buffer.