Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

% of non-transparent pixels?

New Here ,
Nov 01, 2019 Nov 01, 2019

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.

1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Nov 01, 2019 Nov 01, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 01, 2019 Nov 01, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2019 Nov 01, 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.

 

Screen Shot 1.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 01, 2019 Nov 01, 2019

Hmm, that's really interesting but doesn't seem to be giving the result I expect. For example, I have an image that's around 4500 x 4700, hence around 19M pixels. The artwork covers 60-80%, but the histogram output (Channel: Luminosity, Source: Entire Image) shows a pixel count of only 308K, i.e. about 1.5%

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2019 Nov 01, 2019

Try clicking the refresh icon in the upper right corner:

 

Screen Shot 2.png

Screen Shot 3.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2019 Nov 01, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 01, 2019 Nov 01, 2019

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

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2019 Nov 01, 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:

 

Screen Shot 6.png

 

Screen Shot 7.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 01, 2019 Nov 01, 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.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2019 Nov 01, 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

 

Screen Shot 8.png

 

Screen Shot 9.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 01, 2019 Nov 01, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2019 Nov 01, 2019
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines