Open davetapley opened 2 years ago
Per ISO/DIS 12234-2:
Time Zone Offset (in hours) of DateTimeOriginal tag-value relative to Greenwich Mean Time
and:
The allowed values are -12 to +11.
but: https://github.com/hMatoba/Piexif/blob/3422fbe7a12c3ebcc90532d8e1f4e3be32ece80c/piexif/_exif.py#L104
then: https://github.com/hMatoba/Piexif/blob/3422fbe7a12c3ebcc90532d8e1f4e3be32ece80c/piexif/_dump.py#L206-L209
and: https://github.com/hMatoba/Piexif/blob/3422fbe7a12c3ebcc90532d8e1f4e3be32ece80c/piexif/_dump.py#L173-L174
where L is unsigned long, causing ⬇️ for dump with any negative offset.
L
dump
struct.error: argument out of range
Fix for this will go in after https://github.com/hMatoba/Piexif/issues/122
Per ISO/DIS 12234-2:
and:
but: https://github.com/hMatoba/Piexif/blob/3422fbe7a12c3ebcc90532d8e1f4e3be32ece80c/piexif/_exif.py#L104
then: https://github.com/hMatoba/Piexif/blob/3422fbe7a12c3ebcc90532d8e1f4e3be32ece80c/piexif/_dump.py#L206-L209
and: https://github.com/hMatoba/Piexif/blob/3422fbe7a12c3ebcc90532d8e1f4e3be32ece80c/piexif/_dump.py#L173-L174
where
L
is unsigned long, causing ⬇️ fordump
with any negative offset.