Say, you have a canvas size of 10"x10" in Photoshop.

Then, you have an image on that canvas (with a transparent background). Well, if you imagine the entire canvas being taken up, the total area would be 100 square inches (10x10). But, say you have an image inside this canvas. Is there a way in Photoshop, Illustrator, whatever, to figure out how much area is taken up by this image, given the canvas size?

  • It's pretty easy to do with Javascript, but perhaps outside the scope of this site ... I might post something later. – Wolff Jan 7 '20 at 19:02
  • FYI, generally this is what is called a "bounding box" or "minimum bounding rectangle." IIRC Photoshop's locked default base layer has the canvas extents as its bounding box (at least based on Photoshop's estimated uncompressed file size), but subsequent layers may vary and can have a bounding box larger than the canvas. – Yorik Jan 7 '20 at 19:12
  • Do you need rectangular area or the image may have 'holes' that should be subtracted from bounding box? If latter, what level of precision do you need? – Sergey Kritskiy Jan 7 '20 at 19:34

The way I do it:

Inside Photoshop, make a selection and make a path from selection.

Copy that path and paste it in Illustrator.

Use the script GetShapeArea to calculate the area.

Note: In the image below I altered the code to show just cm². But the code has in² and cm².

enter image description here

  • PERFECT! This works!! Thank you – Mike Marks Jan 8 '20 at 3:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.