png-compressor
    Preparing search index...

    Interface IDecodePngOptions

    A set of options to configure how decoding happens.

    interface IDecodePngOptions {
        force32?: boolean;
        parseChunkTypes?: OptionalParsedChunkTypes[] | "*";
        strictMode?: boolean;
    }
    Index

    Properties

    force32?: boolean

    Automatically convert 64-bit images (ie. 16 bit depth) to 32-bit images.

    parseChunkTypes?: OptionalParsedChunkTypes[] | "*"

    A list of optional chunk types to parse or '*' to parse all known chunk types. By default only the chunk types required to extract the image data is parsed for performance reasons, if a chunk type is of use this option can be used to do that.

    strictMode?: boolean

    Enables strict mode which will throw an error when the first warning is encountered. Strict mode should be used when it's important that the PNG is completely valid, when strict mode is not enabled the decoder will be as error tolerant as possible and report any warnings that would has failed in strict mode in IDecodedPng.warnings.