Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
extend colormap in indexed pictures
#2
I don't know how to do it in script-fu, but as far as I remember, you get the color map as a flat list of bytes which is 3x the number of colors and where RGB are three consecutive items in the list. So if you want to extend the map with black you have to add (0,0,0) at the end.

See invert-colormap-0.0.py for Python sample code.
Reply


Messages In This Thread
extend colormap in indexed pictures - by gizaha - 02-03-2019, 03:40 PM
RE: extend colormap in indexed pictures - by Ofnuts - 02-03-2019, 10:35 PM

Forum Jump: