Skip to content

Instantly share code, notes, and snippets.

@dayjaby
Created January 10, 2024 18:47
Show Gist options
  • Save dayjaby/e9a349138b83d7a9604d3d00b001260a to your computer and use it in GitHub Desktop.
Save dayjaby/e9a349138b83d7a9604d3d00b001260a to your computer and use it in GitHub Desktop.
read image id number and strings from Sony ILX LR1
import pyexiv2
img = pyexiv2.Image("DSC00093.JPG")
img.read_exif()
data = img.read_exif()
print(data["Exif.Sony1.0x2042"]) # read ID
print(data["Exif.Sony1.0x2043"]) # read string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment