Photoshop artboard sizes
Hi there,
I have multiple artboards within a PSD file, and I need to get the width and height of all the artboards programmatically.
It seems artboards in Photoshop are generic LayerSets, but I can't seem to find a straight-forward way to get the width and height of individual layerset, so I tried doing calculations using the bounds like so:
artboardWidth = artboard.bounds[2] - artboard.bounds[0];
artboardHeight = artboard.bounds[3] - artboard.bounds[1];
However, it seems the bounds array doesn't work well when there are large images that extend beyond the size of the artboard, even with clipping mask - i.e. bounds calculate the max width and height of all elements inside the artboard.
Can anyone advise how I could get the artboard dimensions?
Thanks so much!
