Liking cljdoc? Tell your friends :D

cmp.exif

The cmp.exif is a library for reading EXIF tags on images. It is a Clojure wrapper for metadata-extractor. In contrast to exif-processor, cmp.exif returns the directories with the tags and does not filter the entries. Feel free to use clojure for filtering. ;-)

Copyright

© 2017-2023 Ludger Solbach

Usage

Dependency

Clojars Project

Example

(ns exif-example
  (:require [org.soulspace.cmp.exif :as exif]))
  
  (def image-file "example-photo.jpg") ; NOTE: use a path to your photo

  ;; parse the metadata into a map of maps of the shape {dir-name {tag-name tag-value}}
  (exif/parse-metadata (exif/read-metadata image-file))

  ;; just print the meta-data
  (exif/print-metadata image-file)

License

Eclipse Public License 1.0

Code Repository

cmp.exif on GitHub

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close