Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a palette using solid color layers
#1
Question 
I have layers with single color layers as I really like these colors.

I want to make a palette from these colors.

I've followed the instructions at https://docs.gimp.org/en/gimp-palette-dialog.html#gimp-palette-new

I made sure all of the color layers were visible

I selected ALL

Import Palette

Chose
  • Sample merged: When this option is checked, colors are picked from all visible layers. If unchecked, pixels are picked from the active layer only, even though not visible.
  • Selected pixels only: As the name says, pixels are picked from the selected area only, in the active layer or all visible layers according to the status of the previous option.
Here are the settings I used.
You can see several of the visible layers

And you can see the palette only has one color in it.

Help would be appreciated. I have over 180 layers and don't look forward to color picking each one in order to create a palette.

Thanks,
Angel


Attached Files Thumbnail(s)
       
Reply
#2
Oh, dear Wink 184 layers 3000 x 3000 pix 7.4 GB in memory.

To make it more manageable, crop it down to a tiny size. say 10 x 10 pix
Use the align tool to spread those out into a strip.
Fix the image using Image -> Fit canvas to layers
Now you can use the palettes context menu to make a new palette.

A quick demo: https://i.imgur.com/ZsIN3IV.mp4 only using 19 layers but the same for your 184
Reply
#3
(06-13-2023, 06:03 PM)AngelH Wrote: I have layers with single color layers as I really like these colors.

I want to make a palette from these colors.

I've followed the instructions at https://docs.gimp.org/en/gimp-palette-dialog.html#gimp-palette-new

I made sure all of the color layers were visible

I selected ALL

Import Palette

Chose
  • Sample merged: When this option is checked, colors are picked from all visible layers. If unchecked, pixels are picked from the active layer only, even though not visible.
  • Selected pixels only: As the name says, pixels are picked from the selected area only, in the active layer or all visible layers according to the status of the previous option.
Here are the settings I used.
You can see several of the visible layers

And you can see the palette only has one color in it.

Help would be appreciated. I have over 180 layers and don't look forward to color picking each one in order to create a palette.

Thanks,
Angel

"Visible" when used with a "Sample merged" setting (see the color picker or the Pointer dialog), means that the layer is visible on the image window, not hidden by other layers.
Reply
#4
(06-13-2023, 07:00 PM)rich2005 Wrote: Oh, dear Wink 184 layers  3000 x 3000 pix 7.4 GB in memory.

To make it more manageable, crop it down to a tiny size. say 10 x 10 pix
Use the align tool to spread those out into a strip.
Fix the image using Image -> Fit canvas to layers
Now you can use the palettes context menu to make a new palette.

A quick demo: https://i.imgur.com/ZsIN3IV.mp4  only using 19 layers but the same for your 184
AngelH.

Hi Rich2005,
Thank you again for sharing your expertise. I've never used Gimp's offset tool. How pretty my palette looked like that. And it did create the palette. Wink Wink Wink Wink Wink

A problem I did run into (aside from the original one), is that when I tried to rearrange the palette colors by moving them within the palette, the colors duplicated instead of moving. Do you know why?

Have a good day Rich2005,
Reply
#5
(06-15-2023, 04:50 PM)AngelH Wrote: A problem I did run into (aside from the original one), is that when I tried to rearrange the palette colors by moving them within the palette, the colors duplicated instead of moving. Do you know why?

AFAIK this is the way the palette editor works, so you don't need to have distinct mouse actions for copy or move. If you wanted the move, you just delete the original.
Reply
#6
Quote:A problem I did run into (aside from the original one), is that when I tried to rearrange the palette colors by moving them within the palette, the colors duplicated instead of moving. Do you know why?

Well, Ofnuts has the solution. Otherwise,

It is annoying, Gimp can sort a palette in several ways but not it seems the order the colours occur in the image. (Inkscape is just as bad)

The palette is a text file and can be sorted but with a large palette such as yours that is one big job.

For a small palette this is the issue, the palette not corresponding to the source image.

   

Sorted manually, it looks like this: 

   
Reply
#7
(06-15-2023, 06:38 PM)rich2005 Wrote: It is annoying, Gimp can sort a palette in several ways but not it seems the order the colours occur in the image. (Inkscape is just as bad)

Not surprising considering that an image is a 2D collection while the palette is a 1D one, so "order of the colors in the image" is left to the appreciation of the viewer, and even when a scan order is defined any noise/dithering/compression artifacts in the image would produce an unexpected order. So that's quite a slippery slope.
Reply
#8
Quote:...snip...So that's quite a slippery slope.

Yes, you might hope that Inkscape for example, which can create a .gpl palette from a set of coloured "objects" would sort according to the object hierarchy, but no, it sorts numerically according to Red value. I cannot think of any other applications that makes .gpl files. Must have a look around.
Reply


Forum Jump: