property IhdrChunk.data

Parsed image header data

Properties

width: number

Image width in pixels (1 to 2^31-1)

height: number

Image height in pixels (1 to 2^31-1)

bitDepth: number

Bit depth: 1, 2, 4, 8, or 16 depending on color type

colorType: number

Color type: 0=grayscale, 2=RGB, 3=indexed, 4=grayscale+alpha, 6=RGBA

compressionMethod: number

Compression method, always 0 (deflate)

filterMethod: number

Filter method, always 0 (adaptive filtering)

interlaceMethod: number

Interlace method: 0=none, 1=Adam7

Usage

import { type IhdrChunk } from ".";