mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-29 17:33:08 +03:00
commit
ac6e1ef949
|
@ -55,7 +55,7 @@ class GbrImageFile(ImageFile.ImageFile):
|
||||||
if width <= 0 or height <= 0:
|
if width <= 0 or height <= 0:
|
||||||
raise SyntaxError("not a GIMP brush")
|
raise SyntaxError("not a GIMP brush")
|
||||||
if color_depth not in (1, 4):
|
if color_depth not in (1, 4):
|
||||||
raise SyntaxError("Unsupported GMP brush color depth: %s" % color_depth)
|
raise SyntaxError("Unsupported GIMP brush color depth: %s" % color_depth)
|
||||||
|
|
||||||
if version == 1:
|
if version == 1:
|
||||||
comment_length = header_size-20
|
comment_length = header_size-20
|
||||||
|
|
Loading…
Reference in New Issue
Block a user