Learn R Programming

loder (version 0.2.1)

inspectPng: Read metadata from a PNG file

Description

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

Usage

inspectPng(file)

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

Value

inspectPng returns a character vector of class

"lodermeta". The print method is called for its side-effect.

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.

See Also

readPng to read the pixel values.

Examples

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

Run the code above in your browser using DataLab