We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b9b392 commit fbaaf3cCopy full SHA for fbaaf3c
src/PIL/GbrImagePlugin.py
@@ -43,9 +43,9 @@ class GbrImageFile(ImageFile.ImageFile):
43
44
def _open(self):
45
header_size = i32(self.fp.read(4))
46
- version = i32(self.fp.read(4))
47
if header_size < 20:
48
raise SyntaxError("not a GIMP brush")
+ version = i32(self.fp.read(4))
49
if version not in (1, 2):
50
raise SyntaxError(f"Unsupported GIMP brush version: {version}")
51
0 commit comments