Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.gpl Palette to Image (Plugin/Script?)
#1
My version: GIMP 2.10.18

Hello, I am asking if anyone has a plugin or script that can do the following: taking a palette (.gpl) and converting it to an image, with one pixel of each color that the palette has.

For example, let's take the input as the Cool Colors palette included with GIMP
[Image: swVtA1G.png]

The end result after inputting the Cool Colors.gpl in the plugin/script would be this (very tiny 8x1 image):
[Image: lXZUwOI.png]

I do not care if it writes the new image to the canvas, or outputs it as a file. I also do not care whether the colors are in order vertically or horizontally, and the "Number of Columns" in the .gpl can be discarded as well.

The reason I need it is because I posterized a RGB 16-million color space image to levels of 32 red, 64 green, and 4 blue (based on the amount of receptors in the human eye for each color) in Paint.NET. And now I would like to have only the unique colors from it in an image, so I can further reduce that image's amount of colors using GIMP or GrafX2 to make a limited color palette for things like pixel art/game art. For example, I already did this with the Natural Colour System's 1952-color palette. (and if you ask how I got all those colors into an image, it was using the eyedropper on 1952 color swatches!!! But my new .gpl has 8192 colors, over 4 times as much. That's the reason I'm asking for an automation)
https://lospec.com/palette-list/natural-...-system-16

Here is the .gpl file of my new 8192-color palette if anyone wants to use it as a lab rat if they thankfully write the plugin/script
https://cdn.discordapp.com/attachments/4...2-64-4.gpl
Reply


Messages In This Thread
.gpl Palette to Image (Plugin/Script?) - by P-Tux7 - 12-11-2020, 05:15 AM

Forum Jump: