diff --git a/PIL/GifImagePlugin.py b/PIL/GifImagePlugin.py index 5c3e580a4..91bdec7c7 100644 --- a/PIL/GifImagePlugin.py +++ b/PIL/GifImagePlugin.py @@ -338,7 +338,7 @@ def getheader(im, palette=None, info=None): # if the user adds a palette, use it if palette is not None and isinstance(palette, bytes): - paletteBytes = palette + paletteBytes = palette[:768] else: usedPaletteColors = []