Auto Cropping Object Within Bounding Box
I would like to know if there is a way to automate the cropping of images with oversized bounding boxes. For example, if the bounding box around an image measures 5in x 5in, but the actual image within the bounding box is only 2.50in x 2.5in, is there a way to write a script so that Illustrator could automatically crop the image down to just before the image within the box?
If this is possible, I am basing it on the fact that when an effect is applied to an object or image within a bounding box, the effect is applied to the object itself rather than the bounding box. This leads me to think that Illustrator is already capable of identifying the object, so why wouldn't it be able to crop it as well?
