package camlimages

  1. Overview
  2. Docs
Image processing library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

camlimages-5.0.5.tar.gz
md5=84929b30257aa8e493dc84303768f400
sha512=b3774d2287e4a97082f0289766f5a79d3e75454a194d2d6400cee9cf926f7676d8eba4cb27221a98314461b7a81b4386b253f1d706a94447423394be89d2ed49

doc/camlimages.exif/Exif/DateTime/index.html

Module Exif.DateTimeSource

Sourcetype t = {
  1. year : int;
  2. month : int;
  3. day : int;
  4. hour : int;
  5. min : int;
  6. sec : int;
}
Sourceval to_string : t -> string
Sourceval of_string : string -> [> `Error of string | `Ok of t ]
Sourceval of_string_packed_unix_time : string -> [> `Error of string | `Ok of t ]

I had an old Android phone which created DateTime tag with a little endian encoded unsigned int32 of unix time, which seems not following the spec of EXIF.

This function tries to fix the issue.