Skip to content

Commit

Permalink
Fixed invalid argument warning
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Oct 4, 2023
1 parent 54aa8fa commit 29d23cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -3749,6 +3749,7 @@ def load_from_fp(self, fp, offset=None):
self.endian = self._info._endian
if offset is None:
offset = self._info.next
self.fp.tell()
self.fp.seek(offset)
self._info.load(self.fp)

Expand Down

0 comments on commit 29d23cf

Please sign in to comment.