Auto fit inline images to text frame in InDesign
- This topic has 2 replies, 2 voices, and was last updated 5 years, 10 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / 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
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
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
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
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!