Function: image-metadata

Return metadata for image SPEC.
FRAME is the frame on which the image will be displayed. FRAME nil
or omitted means use the selected frame.

(fn SPEC &optional FRAME)