It is currently Tue Jul 02, 2024 1:38 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Gradient to Pallette
PostPosted: Mon Jun 06, 2022 10:06 am  (#1) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7744
Location: On the other side of this screen
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.

_________________


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Gradient to Pallette
PostPosted: Mon Jun 06, 2022 10:13 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
I saw this last night, but I believe it's an older script. I'm looking for it...

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Gradient to Pallette
PostPosted: Mon Jun 06, 2022 10:14 am  (#3) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7744
Location: On the other side of this screen
So there is one? I'll wait ;)

_________________


Top
 Post subject: Re: Gradient to Pallette
PostPosted: Mon Jun 06, 2022 10:17 am  (#4) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
I havent tried it...


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

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes
Top
 Post subject: Re: Gradient to Pallette
PostPosted: Mon Jun 06, 2022 10:25 am  (#5) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
It works. It's in the Image menu.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Gradient to Pallette
PostPosted: Mon Jun 06, 2022 10:29 am  (#6) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7744
Location: On the other side of this screen
thanks :)

_________________


Top
 Post subject: Re: Gradient to Pallette
PostPosted: Mon Jun 06, 2022 11:28 am  (#7) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7744
Location: On the other side of this screen
Thanks Mahvin. Done all 20 gradients :)

_________________


Top
 Post subject: Re: Gradient to Pallette
PostPosted: Mon Jun 06, 2022 12:08 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4752
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),

_________________
Image


Top
 Post subject: Re: Gradient to Pallette
PostPosted: Tue Jun 07, 2022 1:38 am  (#9) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7744
Location: On the other side of this screen
Thanks Ofnuts, thought I'd try the script again today and is throwing errors

_________________


Top
 Post subject: Re: Gradient to Pallette
PostPosted: Tue Jun 07, 2022 2:00 am  (#10) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2437
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 577 times ]

_________________
Image


Top
 Post subject: Re: Gradient to Pallette
PostPosted: Tue Jun 07, 2022 3:32 am  (#11) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7744
Location: On the other side of this screen
Thankyou rich. Took a bit to understand as my palettes and gradients are in oppposite places than yours.

_________________


Top
 Post subject: Re: Gradient to Pallette
PostPosted: Tue Jun 07, 2022 4:08 am  (#12) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4752
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:

_________________
Image


Top
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Gradient from Image

14

No new posts Attachment(s) GEGL Gradient Map

21

No new posts Attachment(s) Palette To Gradient

4

No new posts Attachment(s) Gradient from image

2

No new posts Attachment(s) Gradient from line

3



* Login  



Powered by phpBB3 © phpBB Group