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. ;-)
© 2017-2023 Ludger Solbach
(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)
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close