FormatParser.Image (format_parser v2.2.0)

An Image struct and functions.

The Image struct contains the fields format, width_px, height_px, intrinsics and nature.

Summary

Functions

Parses a file and extracts some information from it.

Functions

parse(file)

Parses a file and extracts some information from it.

Takes a binary file as argument.

Returns a struct which contains all information that has been extracted from the file if the file is recognized.

Returns the following tuple if file not recognized: {:error, file}.