Can anyone talk me through the concepts of image Property Dictionaries? I want to save a TIFF file that has a TIFF Dictionary with some keys.
I'm working in python, but any advice would be welcome.My current code is:
options = {
kCGImagePropertyTIFFDictionary: 'TIFFDictionary',
kCGImagePropertyTIFFXResolution: "300",
kCGImagePropertyTIFFYResolution: "300",
kCGImagePropertyTIFFResolutionUnit: 2 }
CGImageDestinationAddImage(destination, image, options)But they don't get saved to the TIFF file. I don't understand where and how I need to use
kCGImagePropertyTIFFDictionary.https://developer.apple.com/documentation/imageio/cgimageproperties/format_specific_dictionaries
From the documentation it looks like the keys need to be inside kCGImagePropertyTIFFDictionary somehow.