Skip to content

Commit

Permalink
Merge pull request #6892 from radarhere/init
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Jan 18, 2023
2 parents 0635c18 + c5d1b15 commit 407f0f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PIL/JpegImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import tempfile
import warnings

from . import Image, ImageFile, TiffImagePlugin
from . import Image, ImageFile
from ._binary import i16be as i16
from ._binary import i32be as i32
from ._binary import o8
Expand Down Expand Up @@ -524,6 +524,8 @@ def _getmp(self):
head = file_contents.read(8)
endianness = ">" if head[:4] == b"\x4d\x4d\x00\x2a" else "<"
# process dictionary
from . import TiffImagePlugin

try:
info = TiffImagePlugin.ImageFileDirectory_v2(head)
file_contents.seek(info.next)
Expand Down

0 comments on commit 407f0f9

Please sign in to comment.