interface PngFile

PNG file structure containing signature and chunks.

A PNG file consists of an 8-byte signature followed by a series of chunks. The signature is always the same: { highBitByte: 137, signature: "PNG", dosEOF: "\u001a", dosLineEnding: "\r\n", unixLineEnding: "\n" }.

Type Parameters

TChunk

Properties

signature: { highBitByte: number; signature: string; dosLineEnding: string; dosEOF: string; unixLineEnding: string; }

The 8-byte PNG signature: [137, 80, 78, 71, 13, 10, 26, 10]

Array of PNG chunks in the file

Usage

import { type PngFile } from ".";