[17:31:30] <zinefer> hi guys - i am struggling to get PIL to save an image i am editing in python 3 ... it's a gif, and i keep getting `ValueError: unrecognized raw mode` this seems to be some issue with the palette, but no amount of googling seems to be able to tell me what to do to fix it
[17:36:10] <zinefer> here is a quick paste of what i am working with: http://pastebin.com/tpr0TD7E
[18:43:23] <zinefer> aha! a simple img = img.convert("RGBA") seems to have allowed me to start saving files but now my animation is gone x,x
[19:13:36] <zinefer> no, i think this is a redherring
[19:41:15] <zinefer> so my image is in mode "P" and saving it out causes the unrecognized raw mode ... converting it to RGBA right before the save seems to work but it becomes greyscale
[20:18:30] <wiredfool> zinefer: it's possible that the rawmode error is coming from the palette
[20:18:52] <wiredfool> you might try not converting to 'p' mode initially
[20:21:02] <zinefer> @wiredfool: like this img = Image.open('data/signal/signalsrc.gif').convert("P") ?
[20:21:20] <zinefer> running for some food ... brb
[20:22:14] <wiredfool> no, leave out the convert to 'p' mode. GIFs should likely already be in that mode, and there may be side effects in doing the conversion again
[20:49:26] <zinefer> "you might try not converting to 'p' mode initially" ahh i missed the word not, sorry
[20:50:45] <zinefer> it throws the same error with and without the .convert("P") call
[20:57:45] <zinefer> and i have run across issue #1592 - but it mentions the raw mode error is a normal thing and to see https://github.com/python-pillow/Pillow/issues/1280
[20:57:53] <zinefer> but that issue doesn't really explain how to fix the problem
[21:22:19] <wiredfool> what is len(img.palette.palette) and img.palette.rawmode?