Skip to main content
PensacolaChri30005758izls
Known Participant
May 30, 2023
Question

White Space vs Pictures vs Words

  • May 30, 2023
  • 4 replies
  • 2115 views

Is there a way to measure the White space in an InDesign file in comparison to the amount of space Text takes up and Images take up? This will help my company know if a book has too many images or too much white space or too many words.

 

For example: The document is considered 100% filled. Perhaps 10% of the document is filled with images, 30% of the file is take up with text / words, and 60% is filled with white space. 10% + 30% + 60% = 100% of the document.

 

Could all the white pixels be counted and compared to all the colored pixels maybe to determine this ratio?

This topic has been closed for replies.

4 replies

Peter Spier
Community Expert
Community Expert
June 7, 2023

Just going to weigh in that I think counting white pixels in not what most people would consider "white space" in a design. I would say the traditional unerstanding is white space encompasses "blank" areas outside any image areas and type-filled zones and would not include counters in glyphs or white pixels in an image or the leading space in a block of text.

PensacolaChri30005758izls
Known Participant
June 28, 2023

Thank you! I will keep this in mind as I analyze these pages. 

Robert at ID-Tasker
Legend
May 31, 2023

As already mentioned - everything depends on your definition of "white space"... 

Images / vectors - can be checked using Histogram in the Photoshop. 

Text - if you count a letter as a rectangle surrounding the letter - then it can also be calculated. Or raster and count pixels. 

 

But why do you really need this info? Latest EU directive? There was a thread about that few months ago - ended with just counting pixels. 

 

But if you want to count "pixels" - it's not really a solution... because "printed area" depends on the printing technique - you don't have squares on paper - and dots can be cut in half - so you would have to simulate what RIP would create... Then there is DPI / LPI... 

 

James Gifford—NitroPress
Legend
May 31, 2023

As already mentioned - everything depends on your definition of "white space"...

Images / vectors - can be checked using Histogram in the Photoshop.

Text - if you count a letter as a rectangle surrounding the letter - then it can also be calculated.

 

See above. A simple image-area won't properly judge a white background. Histogram won't be too useful unless all the white is BG area. And text is "not white space" from margin to margin, not just in the rectangle of each glyph. Counting space around letters as white space is... nonsensical.

 

It's an esthetic judgment, pure and simple. Trying to automate/measure it raises endless questions that, IMVHO, aren't worth answering. But the answer is "a few hundred for a script will get you the figure you want."

Robert at ID-Tasker
Legend
May 31, 2023

I'm not talking about linked image's area - Export As a bitmap and Histogram in Photoshop - with some threshold perhaps. 

 

Text - yes, it's purely esthetic. 

 

But if it's EU directive - anyone have link to it? What exactly are the requirements. 

 

rob day
Community Expert
Community Expert
May 31, 2023

Could all the white pixels be counted and compared to all the colored pixels maybe to determine this ratio?

 

Hi @PensacolaChri30005758izls , InDesign pages are vector objects—there are no pixels—so I don’t think you could reliably get a white space percentage from the InDesign scripting API. You could export a page to an image format, and maybe get a white pixel percentage in Photoshop—InDesign and Photoshop can talk to each other via the Bridgetalk object.

 

Maybe ask over in the Photoshop forum for a script that will get a count of white pixels divided by total pixels from an image file. Then you could either manually export the page and run the script in Photoshop, or use Bridgetalk to launch the script fom inDesign.

PensacolaChri30005758izls
Known Participant
June 5, 2023

https://community.adobe.com/t5/photoshop-ecosystem-discussions/white-vs-colors-vs-black/m-p/13830994

 

Thank you so much for your comment. I am sorry the problem is so confusing - I do not like it either, but it is a problem this analyst has been assigned to resolve. Pixel counting is the only way I can think of (as an adobe novice), but I am grateful for everyone's advice. Of course, the Adobe customer service was no help, so I posted the question everywhere I could think of (see link above). I do appreciate your time. 

PensacolaChri30005758izls
Known Participant
June 5, 2023

This comment was in response to Rob Day's first posted comment: "Hi @PensacolaChri30005758izls , InDesign pages are vector objects—th..."

James Gifford—NitroPress
Legend
May 30, 2023

I'd question whether any formula could usefully be applied to such a (largely) esthetic judgment, but it's all about the numbers in some shops.

 

InDesign has no integral features that would enable this, maybe not even through scripting. As you suggest, it may need an entirely optical process based on page images. 

PensacolaChri30005758izls
Known Participant
May 31, 2023

Do you have any other suggestions of how the problem could be solved? 

James Gifford—NitroPress
Legend
May 31, 2023

I think a script could be devised to tally image and text areas, then calculate proportions against page size. Fairly complex and there are some gotchas, such as text frame area vs actual text content. 

 

Would probably be a paid development job,  but there are wizard script folks here.