I want to automatically generate a palette from an image.
Something like this, where the output is an image a single pixel tall, and 256 pixels wide, from all the colors of an input image.
I've tried Photoshop, where you can generate the palette, but it only supports exporting in .act and .pal files, which don't work for me.
The palette should be 256 colors, which the source image already is in.
I could do it manually, but it would take forever. Googling isn't helping me, but I thought there's bound to be someone that knows of a script or a way to do this.
I looked at this question, but the command doesn't work for me (Windows) and even if it did, I would still need a way to generate the actual png file from the text file it outputs.
Thanks in advance!
Also, I wasn't sure where to put this, so I hope this is the correct site. Feel free to delete it if it's not.
Edit: A way to convert an .act or .pal file to an actual image works as well. I couldn't find any way to do this either.