mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 13:16:52 +03:00
Use snake case
This commit is contained in:
parent
c2a42655e1
commit
5301b86f1c
|
@ -1476,18 +1476,18 @@ class Image:
|
||||||
offset = current_offset
|
offset = current_offset
|
||||||
|
|
||||||
fp = self.fp
|
fp = self.fp
|
||||||
thumbnailOffset = ifd.get(513)
|
thumbnail_offset = ifd.get(513)
|
||||||
if thumbnailOffset is not None:
|
if thumbnail_offset is not None:
|
||||||
try:
|
try:
|
||||||
thumbnailOffset += self._exif_offset
|
thumbnail_offset += self._exif_offset
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
self.fp.seek(thumbnailOffset)
|
self.fp.seek(thumbnail_offset)
|
||||||
data = self.fp.read(ifd.get(514))
|
data = self.fp.read(ifd.get(514))
|
||||||
fp = io.BytesIO(data)
|
fp = io.BytesIO(data)
|
||||||
|
|
||||||
with open(fp) as im:
|
with open(fp) as im:
|
||||||
if thumbnailOffset is None:
|
if thumbnail_offset is None:
|
||||||
im._frame_pos = [ifd_offset]
|
im._frame_pos = [ifd_offset]
|
||||||
im._seek(0)
|
im._seek(0)
|
||||||
im.load()
|
im.load()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user