Skip to content

Commit

Permalink
fix: do not ignore empty exif rows
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdh authored Dec 12, 2024
1 parent 5d84a79 commit 29f50ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dataimporter/emu/views/mss.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def transform(self, record: SourceRecord) -> dict:
}

# add the orientation tag data from exif if specified
tags = record.get_all_values("ExiTag", reduce=False)
tag_values = record.get_all_values("ExiValue", reduce=False)
tags = record.get_all_values("ExiTag", reduce=False, clean=False)
tag_values = record.get_all_values("ExiValue", reduce=False, clean=False)
if tags and tag_values:
try:
# the orientation tag is 274 (0x0112), so look up the index of that in
Expand Down

0 comments on commit 29f50ff

Please sign in to comment.