Skip to main content
Participating Frequently
November 1, 2019
Question

% of non-transparent pixels?

  • November 1, 2019
  • 4 replies
  • 1872 views

Is there some way to get the % of pixels in an image that are non-transparent? I'm trying to get an approximation of how much ink would be used in printing an image.

This topic has been closed for replies.

4 replies

Legend
November 1, 2019

Pixel count is inaccurate for this. CMYK with a large line screen will be vastly different than RGB on an inkjet. Different colors use different dot patterns (you are aware than CMYK can use different screens and get the same visual output?) I know its tempting but any print shop or service bureau can explain.

rob day
Community Expert
Community Expert
November 1, 2019

Right, it would be the output dimensions that matter, the OP’s 4500 x 4700 pixel dimension could be output as 45" x 47" or 4.5" x 4.7" obviously using very different amounts of ink.

 

If you know the maximum amount of ink the printer uses per square inch, the mean luminosty could help get an approximation—if the mean is 128 then the ink usage would be 50% of the max.

rob day
Community Expert
Community Expert
November 1, 2019

It doesn’t seem like transparency tells you much about ink coverage. A pixel could be completely transparent (white), or partially transparent (gray).

 

Obviously these flattened images would have very different ink coverages, and different Mean values:

 

 

 

cliffaddyAuthor
Participating Frequently
November 1, 2019

There are no gradients in any of the work. Anti-aliasing is a trivial amount. I don't need a precise answer, if I'm within 20% that's more than good enough.

 

rob day
Community Expert
Community Expert
November 1, 2019

There are no gradients in any of the work.

 

I was just showing a quick example of how the ink coverage would be reflected in the mean value—the ink coverage (and mean) would also change in a photographic image

 

 

Chuck Uebele
Community Expert
Community Expert
November 1, 2019

If you have transparent pixels, make a selection by ctrl/cmd clicking on the layer icon, then use the histogram to get a pixel count.

cliffaddyAuthor
Participating Frequently
November 1, 2019

Ah, this works, with the caveat that you have to click the refresh button afterwards.

 

JJMack
Community Expert
Community Expert
November 1, 2019

How much ink will be used depends on the composite image content, image size, pixel opacity,  printer model, the paper used and print quality set.  Higher quality paper and high print quality settings use more ink.  It not just pixels.

JJMack
cliffaddyAuthor
Participating Frequently
November 1, 2019

Yes, I'm perfectly aware of all that. As I said, an approximation that'll be based on other factors and my own empirical testing. All I need is the pixel count.

rob day
Community Expert
Community Expert
November 1, 2019

The Histogram panel in extended view will give you the pixel count of a selection along with the mean and median pixel value. You could set the Channel to Luminosity and get the Mean pixel value along with the count.