Indesign script - frameFittingOptions crop in combination fittingOnEmptyFrame fittingAlignment
Hi,
I am trying to run a script that resets image fitting. I am having issues with the cropping. I don't understand the hirarchy of the geormetricbounds vs cropping vs fitting of an image in a rectangle.
I want to be able to swap image within a rectangle in a clean predicatble way witout crop values of the original image in the rectangle. I want to reset the crop to be 0 on all 4 sides like i can in the interface. set the image rectangle to be fill proportionally, autofit and be able to set an align from. When I run my script I get back and image with a crop factor on it instead of crop being [0,0,0,0]
Here is a code snippet from what I have so far:
