diff --git a/piexif/_load.py b/piexif/_load.py index e815850..0df353e 100644 --- a/piexif/_load.py +++ b/piexif/_load.py @@ -164,6 +164,8 @@ def convert_value(self, val): if length > 4: pointer = struct.unpack(self.endian_mark + "L", value)[0] data = self.tiftag[pointer : pointer + length - 1] + elif length == 1: + data = value[0:length] else: data = value[0 : length - 1] elif t == TYPES.Short: # SHORT