inspectPng: Read metadata from a PNG file

Description Usage Arguments Details Value See Also Examples

Description

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

Usage

1
2
3
4
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

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

loder documentation built on May 2, 2019, 12:36 p.m.