4 Replies Latest reply on Oct 18, 2011 12:38 AM by Corwin86

    How to resize a frame to the dimensions of the inner image?

    Corwin86

      Hi,

       

      I'm preparing a JS script.

       

      I need to resize a frame (InDesign) to the dimensions of an inner image (in fact, the image contained by the frame itself).

       

      So:

       

      1) I need to control if the frame is bigger (larger) than the image inside it.

       

      2) If (1) it's true, I need to obtain the dimensions of the inner image and apply them to the frame.

       

      3) At the end, I will have that the frame matches perfectly the image.

       

      Is it possible?

       

      Thanks and best regards,

       

      Francesco Jonus