Skip to content

Make EXIF plugin #520

@wiredfool

Description

@wiredfool

Exif support (labeled experimental since 2003) is somewhat adequate for reading, but there's no clear way to change a value and then write it out. We currently support writing Exif as byte strings, with no way to make them apart from manually setting up nested TiffImagePlugin.ImageFileDirectory instances, then calling save into a file pointer.

  • Image.getexif() should exist, and return an Exif object.
  • The Exif object should export a dictionary interface.
  • The Exif object should have a toBytes() method returning the correct bytes.
  • Exif.load(bytes).toBytes() should roundtrip.
  • This should work:
exif = Exif()
exif['Orientation'] = 1  
im.save('temp.jpg', exif=exif)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugAny unexpected behavior, until confirmed feature.EnhancementExifTIFF

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions