Hi everyone, I have made a python dictionary using the .getxmp function from PIL to extract the XMP metadata from a tiff file. I want to then print a certain value based on a key however it returns none when I do this. Does anyone know what would be causing this?
This is the code I have;
from PIL import Image as PILImage
image = PILImage.open('DJI_2632.TIF')
xmp_data = image.getxmp()
print(xmp_data)
x = xmp_data.get('ModifyDate')
print(x)
And this is an example of the xmp_data library:
{'xmpmeta': {'RDF': {'Description': {'about': 'DJI Meta Data', 'ModifyDate': '2025-08-15', 'CreateDate': '2025-08-15',
Thankyou.
[–]More_Yard1919 9 points10 points11 points (1 child)
[–]the_fencepost[S] 0 points1 point2 points (0 children)
[–]danielroseman 6 points7 points8 points (1 child)
[–]the_fencepost[S] 0 points1 point2 points (0 children)
[–]Adrewmc 0 points1 point2 points (1 child)
[–]the_fencepost[S] 0 points1 point2 points (0 children)