mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-14 05:36:48 +03:00
a break
This commit is contained in:
parent
dad5e86226
commit
12cea19280
|
@ -380,6 +380,7 @@ def getheader(im, palette=None, info=None):
|
||||||
for newI in range(countUsedPaletteColors):
|
for newI in range(countUsedPaletteColors):
|
||||||
if imageBytes[i] == usedPaletteColors[newI]:
|
if imageBytes[i] == usedPaletteColors[newI]:
|
||||||
imageBytes[i] = newI
|
imageBytes[i] = newI
|
||||||
|
break
|
||||||
|
|
||||||
im.frombytes(bytes(imageBytes))
|
im.frombytes(bytes(imageBytes))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user