Skip to content

Commit

Permalink
Fix for issue 23
Browse files Browse the repository at this point in the history
  • Loading branch information
tinusg committed May 10, 2016
1 parent 3aa77d3 commit ca77635
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pexif.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def __init__(self, type_id, name, size):
LONG = ExifType(4, "long", 4).id
RATIONAL = ExifType(5, "rational", 8).id
UNDEFINED = ExifType(7, "undefined", 1).id
SIGNEDSHORT = ExifType(8, "signedshort", 2).id
SLONG = ExifType(9, "slong", 4).id
SRATIONAL = ExifType(10, "srational", 8).id

Expand Down Expand Up @@ -511,6 +512,8 @@ def getdata(self, e, offset, last=0):
actual_data = the_data
elif exif_type == SHORT:
actual_data = pack(e + ("H" * components), *the_data)
elif exif_type == SIGNEDSHORT:
actual_data = pack(e + ("H" * components), *the_data)
elif exif_type == LONG:
actual_data = pack(e + ("I" * components), *the_data)
elif exif_type == SLONG:
Expand Down

0 comments on commit ca77635

Please sign in to comment.