Skip to content

When try to get an image's exif, get error: SyntaxError: not a TIFF file (header b'' not valid) #4852

@Julymycin

Description

@Julymycin

What did you do?

image = Image.open(image_file_path)
image.getexif()

What did you expect to happen?

to get the image's exif info
this error occurs for a few images, such as
2705

What actually happened?

SyntaxError: not a TIFF file (header b'' not valid)

What are your OS, Python and Pillow versions?

  • OS: Ubuntu 18.04LTS
  • Python: 3.7.7
  • Pillow: 7.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions