png-compressor
    Preparing search index...

    Interface IPngDetails

    Internal details of the png required to decode.

    interface IPngDetails {
        bitDepth: 1 | 2 | 4 | 8 | 16;
        colorType: ColorType;
        height: number;
        interlaceMethod: InterlaceMethod;
        width: number;
    }
    Index

    Properties

    bitDepth: 1 | 2 | 4 | 8 | 16

    The bit depth defines how many bits are used per channel. The total bits used for each color type is determined by channels * bits per channel as shown in the below table:

    | Color type | Channels | 1 | 2 | 4 | 8 | 16 |---------------------|----------|--------------------- | Indexed | 1 | 1 | 2 | 4 | 8 | - | Grayscale | 1 | 1 | 2 | 4 | 8 | 16 | Grayscale and alpha | 2 | - | - | - | 16 | 32 | Truecolor | 3 | - | - | - | 24 | 48 | Truecolor and alpha | 4 | - | - | - | 32 | 64

    colorType: ColorType

    The color type of the image. The color type plus the bit depth defines the possible range of colors that could be encoded by the image.

    height: number

    The height of the image.

    interlaceMethod: InterlaceMethod

    The interlace method of the png.

    width: number

    The width of the image.