Esc

png_read_info

procedureextensionsince 0.36.1Source
  • macOS: png_read_info works on macOS
  • Linux: png_read_info works on Linux
  • Windows: png_read_info works on Windows
  • Wasm: png_read_info works on Wasm

Checks the signature and the first chunk, which must be a whole IHDR with a valid checksum, and reports its size. Nothing after IHDR is read.

Signature

png_read_info :: (
    data: [] u8,
    max_pixels: s64
) -> (info: Image_Info, ok: bool, error: string)

See also