erlang_exif (erlang_exif v3.1.1)

View Source

Reads the Exif data from JPEG images.

Summary

Functions

Read the Exif data from a named file (or binary data) and return a a map with the read data.

Read the Exif data from a named file (or binary data) with data module specified.

Read the Exif data from a binary.

Read the Exif data from a binary and specify a data module.

Types

data_module/0

-type data_module() :: erlang_exif_dict | erlang_exif_maps.

exif/0

-type exif() :: exif_map() | exif_dict().

exif_dict/0

-type exif_dict() :: dict:dict().

exif_map/0

-type exif_map() :: #{atom() => term()}.

return_type/0

-type return_type() :: dict | maps.

Functions

read(File)

-spec read(File) -> {ok, ExifMap} | {error, Reason}
              when File :: file:filename_all(), ExifMap :: exif_map(), Reason :: term().

Read the Exif data from a named file (or binary data) and return a a map with the read data.

read(File, ReturnType)

-spec read(File, ReturnType) -> {ok, Exif} | {error, Reason}
              when
                  File :: file:filename_all(),
                  ReturnType :: return_type(),
                  Exif :: exif(),
                  Reason :: term().

Read the Exif data from a named file (or binary data) with data module specified.

read_binary(Data)

-spec read_binary(Data) -> {ok, Exif} | {error, Reason}
                     when Data :: binary(), Exif :: exif(), Reason :: term().

Read the Exif data from a binary.

read_binary(Data, ReturnType)

-spec read_binary(Data, ReturnType) -> {ok, Exif} | {error, Reason}
                     when
                         Data :: binary(), ReturnType :: return_type(), Exif :: exif(), Reason :: term().

Read the Exif data from a binary and specify a data module.