Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

A way to change the size of the multi inline graphics

Return to Member Forum

  • Author
    Posts
    • #54390
      Anonymous
      Inactive

      Hi!!!!

      I have to work with a multi inline pictures on my document. Sometimes I have to change the inline pictures with a suitalbe size. For example: My pictures' size is usually used with 15mm width, but something its had to change smaller: 14mm, 13,5mm, 13mm…

      I think that this is a way to do it.

      For example: want to adjust size from 15mm to 14mm:

      14mmx100 / 15mm = 93.33%

      – Advantage to the function:

      Transform again: ALT + CTRL + 3

      – I change other keyboards shortcut: I use key F3.

      – to choose any logo to transform from 100% to 93,33% or smaller.

      – CTRL + F: and choose the functions like behind picture

      – Press: “Find” to find the logo that wants to change the size. And press F3 to transform again

      – And continue to “Find Next” to find the next one and press F3 to transform to the end of document.

    • #54391
      David Blatner
      Keymaster

      I wish there were a way to change the size of all the inline graphics at once, but there is not. Perhaps a script could do it.

      One thing: I always encourage people to apply an object style to inline objects like this (where there is more than one inline/anchored object in the document). It makes it much easier to change later.

    • #54396

      Ah – a script! Sure, this one ought to do it. Replace the “14” in the 6th line with the size you want, vertically. Then have the text cursor somewhere in the text containing the inline graphics, and double-click the script. It'll rescale all inline graphics to “14” (or whatever you enter) units in the current measurement system.

      With a minor adjustment it can also change the width to a constant value.

      Warning: it'll try to resize all images, but it will fail on non-image stuff (such as inline placed textboxes and line art).


      if (app.selection[0].hasOwnProperty ("baseline"))


      {


      for (g=0; g<app.selection[0].parentStory.allGraphics.length; g++)


      {


      if (app.selection[0].parentStory.allGraphics[g].hasOwnProperty("absoluteHorizontalScale"))


      {


      b = app.selection[0].parentStory.allGraphics[g].parent.geometricBounds;


      scale = 14/(b[2]-b[0]);


      app.selection[0].parentStory.allGraphics[g].parent.absoluteHorizontalScale *= scale;


      app.selection[0].parentStory.allGraphics[g].parent.absoluteVerticalScale *= scale;


      }


      }


      }


    • #54516
      Anonymous
      Inactive

      Thanks for your script.

Viewing 3 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads