Function: exif-field

exif-field is a byte-compiled function defined in exif.el.gz.

Signature

(exif-field FIELD DATA)

Documentation

Return raw FIELD from Exif DATA.

If FIELD is not present in the data, return nil. FIELD is a symbol in the cdr of exif-tag-alist. DATA is the result of calling exif-parse-file or exif-parse-buffer.

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/image/exif.el.gz
(defun exif-field (field data)
  "Return raw FIELD from Exif DATA.
If FIELD is not present in the data, return nil.
FIELD is a symbol in the cdr of `exif-tag-alist'.
DATA is the result of calling `exif-parse-file' or `exif-parse-buffer'."
  (plist-get (seq-find (lambda (e)
                         (eq field (plist-get e :tag-name)))
                       data)
             :value))