(file)
| 96 | # Check EXIF/XMP |
| 97 | |
| 98 | def extract_exif(file): |
| 99 | return subprocess.run(['exiftool', file], |
| 100 | capture_output=True, text=True, check=True).stdout.strip() |
| 101 | def extract_xmp(file): |
| 102 | return subprocess.run(['exiftool', '-xmp', '-b', file], |
| 103 | capture_output=True, text=True, check=True).stdout.strip() |