This commit is contained in:
David Schmidt 2013-05-23 15:45:11 +02:00
parent dad5e86226
commit 12cea19280

View File

@ -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))