Jump to content
You must now use your email address to sign in [click for more info] ×

exact percentage of colours in a picture


Recommended Posts

HI, Is there a way i could find the exact percentage of a certain colour from a picture in affinity designer V.3.1? 

i tried using the levels adjustment but it shows only black and white levels.

 

for example the below picture has 2 colours yellow and blue, can i find out the percentage of yellow colour? 

 

affinity designer v.3.1 

on ipad pro 17.2 version 6th generation 

 

 

 

IMG_3987.png

Affinity designer, 

For iPad Pro m2 6th generation, iOS17.1.2.

 

 

Link to comment
Share on other sites

1 hour ago, ashr said:

Is there a way i could find the exact percentage of a certain colour from a picture in affinity designer V.3.1? 

This Question topic doesn’t belong in the Bugs section. Perhaps a moderator will move it.

1 hour ago, ashr said:

i tried using the levels adjustment but it shows only black and white levels.

The percentages shown in the Levels adjustment controls are there for you to tweak the settings, not to tell you the black and white content of the image, so I can’t see how that could help.

1 hour ago, ashr said:

affinity designer v.3.1

AD version 3 is years away! I presume you mean 2.3.1.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

  • Staff

Hi @ashr,

There isn't a way to do this currently as there is no Info Panel in the iPad build of Affinity Designer or Affinity Photo, which you could use to find this out.   This has been requested several times to be added to the iPad build of Affinity.  

The Desktop version of Affinity Photo does have an Info Panel, which you could use to find out the values.

Link to comment
Share on other sites

On 2/19/2024 at 7:13 AM, ashr said:

HI, Is there a way i could find the exact percentage of a certain colour from a picture in affinity designer V.3.1? 

i tried using the levels adjustment but it shows only black and white levels.

 

for example the below picture has 2 colours yellow and blue, can i find out the percentage of yellow colour? 

 

affinity designer v.3.1 

on ipad pro 17.2 version 6th generation 

 

 

 

IMG_3987.png

As @stokerg mentions the iPad lacks the info panel but the workaround is to make sure you have nothing selected in the layers panel, then use the colour studio eye dropper to pick the colour and tap the selected colour to show its makeup. Quick demo.

 

My dad always told me, a bad workman always blames their tools….

Just waiting for Ronny Pickering…..

Affinity Photo, Designer, Publisher 1.10 and 2.4 on macOS Sonoma 14 on M1 Mac Mini 16GB 1TB
Affinity Photo, Designer, Publisher 1.10 and 2.4 on Windows 10 Pro. Deceased
Affinity Photo, Designer, Publisher 2.4 on M1 iPad Pro 11” on iPadOS 17.4 
 

https://www.facebook.com/groups/AffinityForiPad

https://www.facebook.com/groups/AffinityPhoto/

The hardest link to find https://affinity.help

Link to comment
Share on other sites

29 minutes ago, Paul Mudditt said:

use the colour studio eye dropper to pick the colour and tap the selected colour to show its makeup

That just shows you the CMYK percentages for each colour.  The OP asked:

On 2/19/2024 at 7:13 AM, ashr said:

for example the below picture has 2 colours yellow and blue, can i find out the percentage of yellow colour? 

In other words, is it 62% yellow (and therefore 38% blue), or what?

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

On 2/19/2024 at 8:13 AM, ashr said:

HI, Is there a way i could find the exact percentage of a certain colour from a picture in affinity designer V.3.1? 

Can you please explain what exactly do you mean by percentage of color?
In relation to what metric?
Which color model (RGB, CMYK)?

color channels or spot colors (tint)?

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

There are many tricks to indirectly measure color values on iPad even without info panel.

  • use blend range to show only specific small color ranges.
  • use fill layer with blend mode difference. Black pixel show matching areas. May add levels adjustment on top to boost sensitivity 
  • use procedural texture filter (developed on Desktop version) to measure delta E to given reference color (entered by sliders or numeric input)

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

4 minutes ago, NotMyFault said:

There are many tricks to indirectly measure color values on iPad even without info panel.

  • use blend range to show only specific small color ranges.
  • use fill layer with blend mode difference. Black pixel show matching areas. May add levels adjustment on top to boost sensitivity 
  • use procedural texture filter (developed on Desktop version) to measure delta E to given reference color (entered by sliders or numeric input)

I’d be interested to see a demonstration of how to use such tricks to determine this info:

18 minutes ago, Alfred said:

is it 62% yellow (and therefore 38% blue), or what?

 

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

On 2/20/2024 at 9:45 AM, Alfred said:

That just shows you the CMYK percentages for each colour.  The OP asked:

In other words, is it 62% yellow (and therefore 38% blue), or what?

I made the assumption that @ashr (as a newbie to the forums) actually wanted similar to info panel to be able to replicate a colour and that can be achieved all be it slightly more complicated as my video shows. The efforts involved calculating % yellow is interesting but not what the op really wanted to know in my personal opinion.

Edited by Paul Mudditt
removed “possible incorrect assumption” statement

 

My dad always told me, a bad workman always blames their tools….

Just waiting for Ronny Pickering…..

Affinity Photo, Designer, Publisher 1.10 and 2.4 on macOS Sonoma 14 on M1 Mac Mini 16GB 1TB
Affinity Photo, Designer, Publisher 1.10 and 2.4 on Windows 10 Pro. Deceased
Affinity Photo, Designer, Publisher 2.4 on M1 iPad Pro 11” on iPadOS 17.4 
 

https://www.facebook.com/groups/AffinityForiPad

https://www.facebook.com/groups/AffinityPhoto/

The hardest link to find https://affinity.help

Link to comment
Share on other sites

On 2/19/2024 at 8:13 AM, ashr said:

for example the below picture has 2 colours yellow and blue, can i find out the percentage of yellow colour? 

 

Basic approach:

  • Create a new pixel layer. Fill with black. Deactivate.
  • Use selection by color to select given range. Adjust tolerance settings as needed.
  • Choose black layer. Use fill with white on selected area.
  • deselect all
  • Filter->blur->average
  • Sample color and note lightness value. This gives percentage of colored pixel to all pixels p1. (On desktop, histogram shows the actual number of pixels in white when hovering over)
  •  
  • Repeat for second color, getting p2
  • the quotient  p1/(p1+p2) is what you asked for.

This method can be improved / simplified.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

For this image I estimate 84% yellow and 16% blue pixels. There is some uncertainty as the dark pixels cannot be counted correctly with my method.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

Another way

A quick rough method, using the Histogram Marque Checkbox and pixel count in that dialog

 

1. Remove the white background (needs to be a transparent background)

 

2. Select > Alpha Range > Select Fully Transparent

Select > Invert Pixel Selection (will give the total of Opaque & Partially Transparent pixels)

This gives a total Pixel count of 119020 (in the Histogram)


3. Select > Colour Range > Select Blues

Gives a Pixel count of 22554 (in the Histogram)

 

4. Subtract 22554 from 119020 to get 96,466 (i.e. the remaining yellow pixels)


You can now calculate the percentage values for blue and yellow

Blue = 22554/119020 = 18.9%

Yellow =96,466/119020 = 81.1%


This is for the Desktop version; I don't know if the iPad has the same options to do this or indeed how accurate the Histogram is when counting pixels
 

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.

Link to comment
Share on other sites

On 2/20/2024 at 11:03 AM, Alfred said:

I’d be interested to see a demonstration of how to use such tricks to determine this info:

 

The linked reply has a file attached which shows all pixels of one exact grey value. With help of info panel (on desktop), histogram (on desktop) of color panel it allows to spot pixels of certain colors and count them by blur filters which helps to calculate percentage from black / white pixel layers.
 

 

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

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.