Skip to content

Commit

Permalink
version 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ianare committed Aug 7, 2020
1 parent 55363ec commit 37dc253
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Change Log
**********

2.3.1 — 2020-08-07
* Fix bug introduced with v2.3.0 in HEIC processing.

2.3.0 — 2020-08-03
* Add notice on Python2 EOL
* Modernize code and improve testing, split up some huge functions
Expand Down
2 changes: 1 addition & 1 deletion exifread/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .utils import ord_, make_string
from .heic import HEICExifFinder

__version__ = '2.3.0'
__version__ = '2.3.1'

logger = get_logger()

Expand Down
6 changes: 3 additions & 3 deletions exifread/heic.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

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

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

0 comments on commit 37dc253

Please sign in to comment.