EXIF Metadata Extractor:
ExifMetadataExtractorTpl reads photographic EXIF information stored in image files and selects details that can help you understand how an image was captured. It looks for ISO, aperture, shutter speed, focal length, camera model, and lens model, leaving out details that are absent. This can be useful when you want to inspect camera settings across a collection of photographs or use those details elsewhere in an image workflow. The node reads the files with exifread; it does not add metadata to images or change the image files.
EXIF Metadata Extractor Input Parameters:
image_paths
A required LIST of paths to image files you want to inspect. The node opens each path in the order supplied and checks the file for the supported EXIF tags. Use paths that the workflow can access, rather than image pixels or filenames without a usable location. There is no minimum, maximum, default value, or set of selectable options defined in the node source. An empty list produces two empty lists. An image with none of the supported tags is omitted from the results, so the number of results may be smaller than the number of paths you provide.
EXIF Metadata Extractor Output Parameters:
metadata
A LIST of dictionaries, one for each image that has at least one supported tag. Each dictionary uses readable labels such as ISO, Aperture, Shutter Speed, Focal Length, Camera Model, and Lens Model; only labels whose corresponding tags were found appear. Values come directly from exifread and are not converted into standardized numbers. Images without supported tags are skipped, so you cannot reliably match an entry to its original path by list position when any image was skipped. If an error interrupts processing, this output instead contains one dictionary with an Error key and the error text.
formatted_metadata
A LIST of readable text strings corresponding, in order, to the entries in metadata. Each string joins the available details in a form such as ISO: 100, Aperture: 28/10. This is convenient for display or prompts, while metadata is better suited to workflows that need individual fields. Images without supported tags have no string entry. If processing fails, this output instead contains one string beginning Error extracting metadata: followed by the error text.
EXIF Metadata Extractor Usage Tips:
- Supply a list of accessible image file paths. For a first check, try one photograph that you know contains camera EXIF data, then expand to a larger collection.
- Use
metadatawhen you need to inspect individual camera details, andformatted_metadatawhen you want a single readable description for each included image. - Check the output length before pairing results with your original path list. Images with none of the six supported tags are skipped rather than represented by empty entries.
- Keep in mind that the node has no settings for choosing additional tags or changing how values are formatted. The date-taken tag appears only in commented-out source code and is not extracted.
- If a batch returns an error, try its paths individually to find the problematic file. An exception stops processing and replaces the batch results with error outputs.
EXIF Metadata Extractor Common Errors and Solutions:
Error extracting metadata: [Errno 2] No such file or directory: '...'
- Explanation: The node could not find a file at one of the supplied paths.
- Solution: Check the spelling and full location of each path, and make sure the file exists where the workflow runs.
Error extracting metadata: [Errno 13] Permission denied: '...'
- Explanation: The node could not open a path because access was denied; the path may also point to a directory instead of a readable file.
- Solution: Confirm that the path points to an image file and that the workflow has permission to read it.
Error extracting metadata: 'NoneType' object is not iterable
- Explanation: This can occur when
image_pathsis missing or supplied asNone, so the node has no list to go through. - Solution: Connect a value containing a list of image paths, or use an empty list when there are no images to inspect.
Error extracting metadata: expected str, bytes or os.PathLike object, not [type]
- Explanation: An item in
image_pathsis not a usable file path. For example, passing an image object instead of its path prevents the file from being opened. - Solution: Check that every item in the list is a path to a file, not the image data itself.
Empty lists in both outputs
- Explanation: This is not an error message. It occurs when the input list is empty or no supplied image contains any of the supported tags.
- Solution: Confirm that paths were supplied and test with a photograph known to contain camera EXIF information. Other metadata tags alone will not produce an entry.
