The Format Parser
Parses the format of a given file. Or returs an error if unknown
parse(binary()) :: struct()
Parses the format of a given file. Or returs an error if unknown.
iex> {:ok, file} = File.read("priv/test.jpg") iex> FormatParser.parse(file) %FormatParser.Image{format: :jpg, height_px: nil, nature: :image, width_px: nil}