Page 1 of 1

Apply palette with imagemagick?

Posted: 12 Feb 2019 19:35
by oftcrash
I create most of my sprites in Pixeltool, then usually have to go into Photoshop to apply the palette. I'd love to do that in Imagemagick, but before I start digging into that, has anyone had any luck getting it to work?

Re: Apply palette with imagemagick?

Posted: 20 Feb 2019 21:00
by Eddi
can't pixeltool apply the correct palette in the first place?

Re: Apply palette with imagemagick?

Posted: 21 Feb 2019 17:23
by oftcrash
I don't think so. I always have to run them through photoshop to apply the palette. The Pixeltool images are RGB, since they are just generated in the browser.

Re: Apply palette with imagemagick?

Posted: 08 Apr 2019 11:46
by V453000 :)
I wrote RGBA Eater to convert 32bpp into 8bpp, but it can also be used to just set a palette of a file. I'm not sure how exactly it will behave if your image has no alpha, I have to test that.

You can download/check out the repository here:

https://github.com/V453000/RGBA-Eater

The usage isn't mega-friendly yet but it works. You just need python 3 with pillow installed. If you have some specific problems I can try to address them. :)

EDIT: I added support for RGBA without alpha.