Graphic frame bounding box
Hi,
I need to know which image have extended graphic frame.

Below coding is working fine for me:
app.activeDocument.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;
app.activeDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.POINTS;
app.activeDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.POINTS;
var link, image, frame;
var doc = app.activeDocument;
var graphics = doc.allGraphics;
var graphicsname=[]
for (var i = 0; i < graphics.length; i++) {
link = graphics.itemLink;
image = link.parent;
frame = image.parent;
image0=Math.round(image.geometricBounds[0]);
image1=Math.round(image.geometricBounds[1]);
image2=Math.round(image.geometricBounds[2]);
image3=Math.round(image.geometricBounds[3]);
frame0=Math.round(frame.geometricBounds[0]);
frame1=Math.round(frame.geometricBounds[1]);
frame2=Math.round(frame.geometricBounds[2]);
frame3=Math.round(frame.geometricBounds[3]);
if((image0>frame0) || (image1>frame1) || (image2<frame2) || (frame3 >image3)){
graphicsname.push(link.name)
}
}
alert(graphicsname.join("\n"))
But the problem is when the image is shear or rotated in the graphic frame, it throw as error. Even the image box does not have empty space. Any suggestion i move forward?

Also if you have suggestions to improve my above coding that also great.
Thanks,
K
