DigitalSlideArchive / tifftools

Pure Python tools for reading and writing all TIFF IFDs, sub-IFDs, and tags.
Other
49 stars 5 forks source link

tiff_set example #84

Open michalfratczak opened 1 year ago

michalfratczak commented 1 year ago

Could you please provide tiff_set function example? I did several tries and looked into src code, but nothing seems to work for me. For starters I tried to save F_Num exif data like so (my input tiff has no exif at all):

tifftools.tiff_set( source=tiff, output=tiff_new, overwrite=True, setlist=[ ( "33437:RATIONAL", '56 10') ] )