mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-30 02:33:07 +03:00
merge error
This commit is contained in:
parent
9e179c027c
commit
4d50f2852c
|
@ -152,12 +152,9 @@ def _save(im, fp, filename):
|
||||||
# Z Dimension: Number of channels
|
# Z Dimension: Number of channels
|
||||||
z = len(im.mode)
|
z = len(im.mode)
|
||||||
|
|
||||||
# assert we've got the right number of bands.
|
|
||||||
if len(im.getbands()) != z:
|
|
||||||
raise ValueError("incorrect number of bands in SGI write: %s vs %s" %
|
|
||||||
(z, len(im.getbands())))
|
|
||||||
if dim == 1 or dim == 2:
|
if dim == 1 or dim == 2:
|
||||||
z = 1
|
z = 1
|
||||||
|
|
||||||
# assert we've got the right number of bands.
|
# assert we've got the right number of bands.
|
||||||
if len(im.getbands()) != z:
|
if len(im.getbands()) != z:
|
||||||
raise ValueError("incorrect number of bands in SGI write: %s vs %s" %
|
raise ValueError("incorrect number of bands in SGI write: %s vs %s" %
|
||||||
|
|
Loading…
Reference in New Issue
Block a user