Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError in dump() if Interop is present and Exif is not #114

Open
dtantsur opened this issue Dec 29, 2020 · 0 comments
Open

KeyError in dump() if Interop is present and Exif is not #114

dtantsur opened this issue Dec 29, 2020 · 0 comments

Comments

@dtantsur
Copy link

From _dump.py:

    if (("Exif" in exif_dict) and len(exif_dict["Exif"]) or
          ("Interop" in exif_dict) and len(exif_dict["Interop"]) ):  # <-- this permits missing Exif because of "or"
        zeroth_ifd[ImageIFD.ExifTag] = 1
        exif_is = True
        exif_ifd = exif_dict["Exif"]  # <-- this requires Exif

Not sure if it's expected or not, but Nikola has this case in its docs: https://getnikola.com/handbook.html#preserve-some-exif-data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant