inspectPng: Read metadata from a PNG file

inspectPngR Documentation

Read metadata from a PNG file

Description

Inspect a PNG file, returning parsed metadata relating to it.

Usage

inspectPng(file)

## S3 method for class 'lodermeta'
print(x, ...)

Arguments

file

A character string giving the file name to read from.

x

An object of class "lodermeta".

...

Additional arguments (which are ignored).

Details

The LodePNG library is used to parse the PNG file at the specified path. The result is a string like the input, but of class "lodermeta" and with several attributes set describing the file's contents. There is a print method for these objects.

Value

inspectPng returns a character vector of class "lodermeta". The print method is called for its side-effect.

See Also

readPng to read the pixel values.

Examples

path <- system.file("extdata", "pngsuite", package="loder")
inspectPng(file.path(path, "basn6a08.png"))


loder documentation built on Dec. 28, 2022, 2:22 a.m.