Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Gradient to Pallette

Mon Jun 06, 2022 10:06 am

I know you can easily turn a pallette into a gradient, I have done it a few times.
Is there a way to do the opposite, Gradient to pallette? Is there a script I can make use of? Couldn't see anything in GMIC to do it.

Re: Gradient to Pallette

Mon Jun 06, 2022 10:13 am

I saw this last night, but I believe it's an older script. I'm looking for it...

Re: Gradient to Pallette

Mon Jun 06, 2022 10:14 am

So there is one? I'll wait ;)

Re: Gradient to Pallette

Mon Jun 06, 2022 10:17 am

I havent tried it...

Re: Gradient to Pallette

Mon Jun 06, 2022 10:25 am

It works. It's in the Image menu.

Re: Gradient to Pallette

Mon Jun 06, 2022 10:29 am

thanks :)

Re: Gradient to Pallette

Mon Jun 06, 2022 11:28 am

Thanks Mahvin. Done all 20 gradients :)

Re: Gradient to Pallette

Mon Jun 06, 2022 12:08 pm

Without a script in two steps:

- Draw horizontal or vertical gradient in RGB image
- Convert to indexed colors (number of colors > size of palette, no dithering)

A palette auto-generated from the colormap of the indexed image appears in the Palettes list (2nd from top),

Re: Gradient to Pallette

Tue Jun 07, 2022 1:38 am

Thanks Ofnuts, thought I'd try the script again today and is throwing errors

Re: Gradient to Pallette

Tue Jun 07, 2022 2:00 am

I was not going to bother since you wanted a script, but not even necessary to have an image open.

Detached the palettes and gradients for convenience: Right click in palettes.

gtop.jpg
gtop.jpg (180.49 KiB) Viewed 591 times

Re: Gradient to Pallette

Tue Jun 07, 2022 3:32 am

Thankyou rich. Took a bit to understand as my palettes and gradients are in oppposite places than yours.

Re: Gradient to Pallette

Tue Jun 07, 2022 4:08 am

rich2005 wrote:I was not going to bother since you wanted a script, but not even necessary to have an image open.

Detached the palettes and gradients for convenience: Right click in palettes.



** slaps forehead ** :oops: :oops:
Post a reply