Skip to content

Commit cdc6df4

Browse files
authored
Add basic makernote tags for Sony (#236)
1 parent 08713a8 commit cdc6df4

File tree

3 files changed

+878
-1
lines changed

3 files changed

+878
-1
lines changed

exifread/core/exif_header.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,16 @@
2525
SIGNED_FIELD_TYPES,
2626
FieldType,
2727
)
28-
from exifread.tags.makernote import apple, canon, casio, dji, fujifilm, nikon, olympus
28+
from exifread.tags.makernote import (
29+
apple,
30+
canon,
31+
casio,
32+
dji,
33+
fujifilm,
34+
nikon,
35+
olympus,
36+
sony,
37+
)
2938
from exifread.utils import Ratio
3039

3140
logger = get_logger()
@@ -551,6 +560,12 @@ def decode_maker_note(self) -> None:
551560
)
552561
return
553562

563+
if "SONY" in make:
564+
self.dump_ifd(
565+
ifd=note.field_offset, ifd_name="MakerNote", tag_dict=sony.TAGS
566+
)
567+
return
568+
554569
# Fujifilm
555570
if make == "FUJIFILM":
556571
# bug: everything else is "Motorola" endian, but the MakerNote

0 commit comments

Comments
 (0)