Skip to content

Commit 37dc253

Browse files
committed
version 2.3.1
1 parent 55363ec commit 37dc253

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

ChangeLog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Change Log
33
**********
44

5+
2.3.1 — 2020-08-07
6+
* Fix bug introduced with v2.3.0 in HEIC processing.
7+
58
2.3.0 — 2020-08-03
69
* Add notice on Python2 EOL
710
* Modernize code and improve testing, split up some huge functions

exifread/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .utils import ord_, make_string
1111
from .heic import HEICExifFinder
1212

13-
__version__ = '2.3.0'
13+
__version__ = '2.3.1'
1414

1515
logger = get_logger()
1616

exifread/heic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
# We parse just enough of the ISO format to locate the Exif data in the file.
1010
# Inside the 'meta' box are two directories we need:
11-
# 1) the 'iinf' box contains 'infe' records, we look for the item_ID for 'Exif'.
12-
# 2) once we have the item_ID, we find a matching entry in the 'iloc' box, which
11+
# 1) the 'iinf' box contains 'infe' records, we look for the item_id for 'Exif'.
12+
# 2) once we have the item_id, we find a matching entry in the 'iloc' box, which
1313
# gives us position and size information.
1414

1515
import struct
@@ -227,7 +227,7 @@ def find_exif(self):
227227
assert ftyp.major_brand == b'heic'
228228
assert ftyp.minor_version == 0
229229
meta = self.expect_parse('meta')
230-
item_id = meta.subs['iinf'].exif_infe.item_ID
230+
item_id = meta.subs['iinf'].exif_infe.item_id
231231
extents = meta.subs['iloc'].locs[item_id]
232232
logger.debug('HEIC: found Exif location.')
233233
# we expect the Exif data to be in one piece.

0 commit comments

Comments
 (0)