package camlimages

  1. Overview
  2. Docs
type t

Raw EXIF data in C

val get_byte_order : t -> Endian.t
val set_byte_order : t -> Endian.t -> unit
val fix : t -> unit
val dump : t -> unit
val from_string : string -> t

Parse the raw string of EXIF data which starts with "Exif\000\000".

val format : Stdlib.Format.formatter -> t -> unit
type contents = {
  1. ifd_0 : Content.t option;
  2. ifd_1 : Content.t option;
  3. exif : Content.t option;
  4. gps : Content.t option;
  5. interop : Content.t option;
}

Partially parsed EXIF data

val contents : t -> contents

Partially parse the raw EXIF to bunch of Contents.t

val get_ifd_0 : t -> Content.t option
val get_ifd_1 : t -> Content.t option
val get_exif : t -> Content.t option
val get_gps : t -> Content.t option
val get_interop : t -> Content.t option

Get Contents.t of the specific field

val unpack_ifd_0 : t -> Entry.unpacked_entry list option
val unpack_ifd_1 : t -> Entry.unpacked_entry list option
val unpack_exif : t -> Entry.unpacked_entry list option
val unpack_gps : t -> Entry.unpacked_entry list option
val unpack_interop : t -> Entry.unpacked_entry list option

Get and parse the specific field

OCaml

Innovation. Community. Security.