You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the sample code from the readme file gives:
$ python3 sample.py
Traceback (most recent call last):
File "sample2.py", line 8, in <module>
exififd['tags'][tifftools.constants.EXIFTag.FNumber.value] = {
TypeError: list indices must be integers or slices, not str
it seems that we are missing level for exifs (SubIDF?).
And, yes, your example is a correct way to add the EXIF IFD.
I should make it optional to populate the path_or_fobj field -- if the ifd doesn't contain byte offset records that need to be copied from a source file, it isn't actually used.
Running the sample code from the readme file gives:
it seems that we are missing level for exifs (SubIDF?).
The following does works:
Side note: the above code will fail if the TIFF file doesn't already contains EXIFs.
Is the following snippet the correct way to add EXIF IFD?
The text was updated successfully, but these errors were encountered: