GIMP Chat
http://gimpchat.com/

Gradient to Pallette
http://gimpchat.com/viewtopic.php?f=9&t=19958
Page 1 of 1

Author:  sallyanne [ Mon Jun 06, 2022 10:06 am ]
Post subject:  Gradient to Pallette

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.

Author:  mahvin [ Mon Jun 06, 2022 10:13 am ]
Post subject:  Re: Gradient to Pallette

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

Author:  sallyanne [ Mon Jun 06, 2022 10:14 am ]
Post subject:  Re: Gradient to Pallette

So there is one? I'll wait ;)

Author:  mahvin [ Mon Jun 06, 2022 10:17 am ]
Post subject:  Re: Gradient to Pallette

I havent tried it...

Attachments:
translate-into-palette.zip [3.43 KiB]
Downloaded 35 times

Author:  mahvin [ Mon Jun 06, 2022 10:25 am ]
Post subject:  Re: Gradient to Pallette

It works. It's in the Image menu.

Author:  sallyanne [ Mon Jun 06, 2022 10:29 am ]
Post subject:  Re: Gradient to Pallette

thanks :)

Author:  sallyanne [ Mon Jun 06, 2022 11:28 am ]
Post subject:  Re: Gradient to Pallette

Thanks Mahvin. Done all 20 gradients :)

Author:  ofnuts [ Mon Jun 06, 2022 12:08 pm ]
Post subject:  Re: Gradient to Pallette

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),

Author:  sallyanne [ Tue Jun 07, 2022 1:38 am ]
Post subject:  Re: Gradient to Pallette

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

Author:  rich2005 [ Tue Jun 07, 2022 2:00 am ]
Post subject:  Re: Gradient to Pallette

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.

Attachment:
gtop.jpg
gtop.jpg [ 180.49 KiB | Viewed 595 times ]

Author:  sallyanne [ Tue Jun 07, 2022 3:32 am ]
Post subject:  Re: Gradient to Pallette

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

Author:  ofnuts [ Tue Jun 07, 2022 4:08 am ]
Post subject:  Re: Gradient to Pallette

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:

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/