Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Script to copy images into file and automatically distribute them in the target document

Contributor ,
Jun 19, 2024 Jun 19, 2024

I am facing a task I’ve faced many times before, but this time on rather a large scale and with very little available time, namely to generate files for a press proof of all the images that will appear in a book, so we can check colour accuracy, etc., before printing.

 

The book has around 600 images spread out over 18 different InDesign documents gathered in an InDesign book.

 

The goal is to take all those 600 images, copy them into a separate target document with the dimensions 700 × 1000 mm, and have them placed/distributed in the target document as few pages as possible by reducing white space between the images (but without overlapping or changing their size from the source documents). Ideally each image should have a caption that includes its file name and the page number it appears on in the source document.

 

This sounds very much like a job for a script, but there are quite a few elements of it that would be unfamiliar territory for me, in particular distributing the images to minimise white space – I have absolutely no idea how to even start approaching that.

 

Does anyone know of a script that does something along those lines that I could tweak to make it do what I’m after?

 

(ExtendScript preferred, since I’ve still not got the hang of the UXP workflow.)

TOPICS
Scripting
470
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jun 20, 2024 Jun 20, 2024

@Janus Bahs Jacquet 

 

Do you still need solution for your task?

 

Example output - each box consists of:

- copy of the placed object - its parent container, not the link itself, so any cropping / distortion / Object properties / etc. will be "preserved",

- INDD file name,

- in case of PDF or INDD file - imported page in (),

- name of the page object is on in the source document,

- [width x height]:

 

RobertatIDTasker_1-1718925687068.png

 

Of course, you can sort and filter any way you want - by any of the 800+ object properties a

...
Translate
Community Expert ,
Jun 19, 2024 Jun 19, 2024

Hi @Janus Bahs Jacquet , You can try this script, which is a variation on the ImageCatalog.jsx script that ships with InDesign

 

https://www.dropbox.com/scl/fo/yga2uuc0c1sqvh7nj4uyb/AGul7Z5qI1lGwsUw9OnwBAY?rlkey=dvyou9c467uka05c1...

 

The dialog will accept any unit. The images get an Object Style applied, and if you include Labels they are also styled:

 

Screen Shot 7.png

 

Screen Shot 8.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 19, 2024 Jun 19, 2024

@rob day 

 

Unfortunately, I don't think it will fulfill the needs:

 

[...] Ideally each image should have a caption that includes its file name and the page number it appears on in the source document. [...]

 

@Janus Bahs Jacquet 

 

Do you have access to a PC? My tool would do that easily - but it's PC only...

 

Unless, you are able to share just INDD files with me - I don't need linked files - on priv of course.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 20, 2024 Jun 20, 2024
LATEST

@Janus Bahs Jacquet 

 

Do you still need solution for your task?

 

Example output - each box consists of:

- copy of the placed object - its parent container, not the link itself, so any cropping / distortion / Object properties / etc. will be "preserved",

- INDD file name,

- in case of PDF or INDD file - imported page in (),

- name of the page object is on in the source document,

- [width x height]:

 

RobertatIDTasker_1-1718925687068.png

 

Of course, you can sort and filter any way you want - by any of the 800+ object properties available - and extract any of those 800+ properties as "description" for each object - in any order.

 

I've made it the "easy way" but I'm pretty sure extremely useful way - each box is placed as InLine graphic in the Story - so if you will need to delete something at the last moment - everything else will reflow automatically. Or if you add some tites, comments, etc.

 

Size of the box and formatting of the "description" - it's 100% up to you - it's a group / template of two objects:

RobertatIDTasker_2-1718926453747.png

so you can format it any way you want - smaller today - bigger tomorrow, square / rectangle / oval / star / whatever shape you like, add shadow, transparency, whatever - my tool is just populating top and bottom objects with "information".

 

More info and more details how it works:

https://id-tasker.com/2024/06/21/contact-sheet-from-images-placed-in-indd-documents/

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines