3 Replies Latest reply on May 22, 2009 4:53 AM by nettmester

    scale/crop images cs4

    nettmester

      when importing xml file the images has to be scaled and increased (ex.20%) and fit to their boxes. 

       

      How can this be done easily?

       

      A

        • 1. Re: scale/crop images cs4
          AdobeScripts Level 3

          hi

           

          I think setting right properties in ObjectStyle should fix your problem - InDesign will automatically rescale/resize images to fit boxes

           

          robin

           

          www.adobescripts.co.uk

          • 2. Re: scale/crop images cs4
            WölfNorgren

            I'm using this:

             

            function placeImage(fileRef){

            imageRect = imagePage.rectangles.add(imageDoc.layers.item(-1), undefined, undefined, {geometricBounds:[0, 0, desiredHeight, desiredWidth], strokeWeight:0, strokeColor:imageDoc.swatches.item("None")});

            imageRect.place(File(fileRef),false);

            imageRect.fit(FitOptions.fillProportionally);

            imageRect.fit(FitOptions.centerContent);

            }

            hope this helps...
            --
            Wölf

            • 3. Re: scale/crop images cs4
              nettmester Level 1

              yeas maybe,

              can we set these properties on one tag and make them count on everyone?

              U see we make school yearbooks and we allready have indesign templates. The templates has hundreds of small image boxes.

              We gonna use snippets and then import XML.

              I think it would be OK to do several templates with different crop measure.

              But to change proporties of thousands of boxes is to much work.

              I hope there is a way to do changes on one box and make it count on everyone in the template.

              Then i wouldnt have to use scripts.