educelab.imgproc.exiftool

This module requires that ExifTool is available in the system path.

educelab.imgproc.exiftool.copy_all(src: str | Path, dest: str | Path, extra_tags: List[str] = None, overwrite=True)

Copy tag metadata from source image to destination image.

Parameters:
  • src – Path to image file containing source metadata.

  • dest – Path to destination image file.

  • extra_tags – If provided, write additional tags to dest.

  • overwrite – If True, overwrite the destination image file.

educelab.imgproc.exiftool.read_tags(file: str | Path | List[Path], tags: List[str] = None) List[Dict]

Get metadata tags for a file or list of files.

Parameters:
  • file – Path or list of Paths to image files

  • tags – List of ExifTool tag strings, e.g. ['-ExposureTime', '-ISO']

Returns:

List of dicts containing tag values, one dict for each input path

educelab.imgproc.exiftool.write(file: str | Path, tags: List[str])

Write image metadata tags to an image file using ExifTool. Existing file will be overwritten.

Parameters:
  • file – Path to image file.

  • tags – List of ExifTool tag assignment strings.