I would like to used JS to make a dimension for a art. but sometime, the art is clipping with jpg file, so visibleBounds would be no correct.
if the art is just clipped. it can be sel.pathItems.visibleBounds; however, the art maybe two or more then two clipiing with jpg file, and these all clipping art are group. I don't know how to get the correct size. can someone help me?
Can you upload screenshots of your artboard and your layers to show how the art is clipped and what kind of art it is?
You have more items in layer panel, can you show the entire selection in the panel?