Jump to content

Recommended Posts

Posted

Hi!

Guess this is a stupid question but I've tried figuring it out on my own but must be missing something here. I have a photo and I want to convert it to a set palette of just 16 colors. Eh... How do I do it? Anyone?

Cheerz!
/M

Posted

For a PNG export, look at the More... dialog, and try something like this:
image.png.ee1046aa69a4834f678cbeb0546270f8.png 

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

  • 4 years later...
Posted

I'm also looking for this info. The above answer is not sufficient because it's not a specific indexed palette (it's "automatic", ie outside of your specific control).

Here it's described how to save a palette from an image document, but you can't use that palette to convert a document to it?

Posted
12 minutes ago, eobet said:

but you can't use that palette to convert a document to it?

Correct, as far as I can see.

Though you can specify Custom in the Export dialog, there does not seem to be any way of choosing a specific palette in that case.

This is logged as a bug: https://forum.affinity.serif.com/index.php?/search/&tags=AFD-2432

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted
1 hour ago, eobet said:

I'm also looking for this info. The above answer is not sufficient because it's not a specific indexed palette (it's "automatic", ie outside of your specific control).

Here it's described how to save a palette from an image document, but you can't use that palette to convert a document to it?

If I understand your issue correctly, here is a way to create your own palette with the colours you want, rather than the automatic ones created when using Create Palette from Image. It is definitely fiddly, but it works.

1.  From the Swatches panel, hamburger menu, choose Create Palette from Image.  Then import your image document that has the colours you want.
2. When the image appears on your canvas, move the slider to choose 3 colours only.  Choose Application palette, because you must be able to find it in the Swatches panel to use for the next document when you reach step 5.
3. Give the new palette a name. Then in the Swatches panel, right click on any two of the colors that have been automatically inserted, and select Delete, leaving just one colour which you can later delete.
4. Now you close the document
5. Create a blank new document. Choose FILE>PLACE and import the same image document you used in step 1. Duplicate it, and lock the background layer.
Now, with the duplicate layer selected, use the eyedropper from the Swatches Panel, select a colour in the image that you wish to keep, click on the well in the swatches panel, and it will load. Then click to add it to the swatches.  (Video attached.)
6. I did not do this in the video, but once you have one or two of your own swatches placed in your category, you can click on the initial swatch that was automatically selected and delete it.
7. Note that each time you add a swatch to your category, the duplicate layer will remain that colour. That is why you must keep deleting the duplicate layer and then creating a new duplicate.

 

Said it was fiddly! 

 

 

 


24" iMAC Apple M1 chip, 8-core CPU, 8-core GPU, 16 GB unified memory, 1 TB SSD storage, Ventura 13.6.7.  Photo, Publisher, Designer 1.10.5, and 2.5.5.
MacBook Pro 13" 2020, Apple M1 chip, 16GB unified memory, 256GB  SSD storage
,  Ventura 13.6.7.   Publisher, Photo, Designer 1.10.5, and 2.1.1.  
 iPad Pro 12.9 2020 (4th Gen. IOS 16.6.1); Apple pencil.  
Wired and bluetooth mice and keyboards.9_9

Posted

That creates a palette of colors from the image, @jmwellborn, but how do you use it when exporting a Palletized PNG? The Export is the question here, I think.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted

@walt.farrell I began by saying “If I understand your issue correctly…”. Apparently not. Oh well. Maybe it will give somebody else a laugh as well.🤪


24" iMAC Apple M1 chip, 8-core CPU, 8-core GPU, 16 GB unified memory, 1 TB SSD storage, Ventura 13.6.7.  Photo, Publisher, Designer 1.10.5, and 2.5.5.
MacBook Pro 13" 2020, Apple M1 chip, 16GB unified memory, 256GB  SSD storage
,  Ventura 13.6.7.   Publisher, Photo, Designer 1.10.5, and 2.1.1.  
 iPad Pro 12.9 2020 (4th Gen. IOS 16.6.1); Apple pencil.  
Wired and bluetooth mice and keyboards.9_9

Posted
20 hours ago, walt.farrell said:

Though you can specify Custom in the Export dialog, there does not seem to be any way of choosing a specific palette in that case.

I think Custom may have provided the ability to use a custom set/palette of colours but as you say that has a bug and has never worked.

 

@everyone

Could this somehow be done using a gradient map adjustment using sharp transitions (i.e. no gradients) between say, 4 custom colours as shown in example below? It sounds like it should work but the results look odd (in some places) even though the colours do appear to be restricted to the 4 chosen colours

(Original image on the left, 4 colour image on the right)

screen99.png

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

  • 2 weeks later...
  • 9 months later...
Posted
5 hours ago, Zack Black said:

Sorry, what? What does that even mean?

No longer useful. I had to delete attachments as my quota got full (6.1K posts), and ended up deleting text content (up to specific time point), as well (most posts containing attachments, in addition to text), and you cannot delete or just leave an empty post. Many were not valid content-wise, either, as there are changes in the software.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.