Auto fit inline images to text frame in InDesign

Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Auto fit inline images to text frame in InDesign

Viewing 2 reply threads
  • Author
    Posts
    • #104073
      Aman Mittal
      Member

      Hi,

      I am running though a project of more than 3000+ pages having images of different sizes in InDesign. However, There are a few images which run outside the text frame, therefore, instead of setting an object style and sorting through all the images. I am searching for a script that could search through the entire document and auto fit the images that run out of the text frame to the width of the text frame.

      Please note:

      1. All the images are inline

      2. Not all images run out of the text frame

      Does anybody know about any script that can solve the purpose. Any kind of help would be greatly appreciated.

      Regards,

      Aman

    • #104082

      Hi Aman,

      it seems from your footnotes-thread, that you have scripting-knowledge?! So you could loop through all images, check if the images are inline (the parent is a character) and if so, check, if geometricBounds are available (a image in an overset has no bounds). Then change the property from inline to anchored, set your width and change the position back.

      Good luck.

      Kai

    • #104096
      Aman Mittal
      Member

      Hi Kai,
      Thank you replying to the post. I regret to inform you that the footnote thread does not belong to me. It was written by Jarek who was kind enough to let me use it. I should have put his reference, I guess. That’s my bad. I might be able to do minuscule tweaks but definitely do not have the expertise to follow everything your solution provided. So, it would be great if you could help me regarding the same, in case you get some leisure time from your schedule.

      Thanks a lot for all the help. Greatly appreciated.
      Regards,
      Aman Mittal

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>