Extracting PageImages from Indesign

Started by wilfo, July 07, 2017, 03:58:36 AM

Previous topic - Next topic

wilfo

Hi Phil,
i'm extracting PageImages from Indesign-Documents by:
exiftool -b -PageImage -W Outimage_%1.4C.%s -wext jpg Infile.indd
It returned me:
OutImage_0001.jpg
OutImage_0002.jpg
...
This worked for me in 10.25
In ... 10.48 ... 10.58 exiftool hangs, processing comands,  described above.
Thanks for your great work and best wishes.
Wilfo


Hayo Baan

Could you post a (small) sample ind file that exhibits this problem?
Hayo Baan – Photography
Web: www.hayobaan.nl

wilfo

Hi
Example "Infile.indd" attached.
Thanks!
wilfo

Phil Harvey

Thanks for the report.  This is definitely a bug, but requires some thinking.

The problem is that %C was supposed to increment for each processed file, but your file has two output images, and to write the second file ExifTool would need to increment this number, which would then lose synchronization with the number of processed files.  I'm not sure the best way to handle this. 

The original implementation of %C incremented the count for each output file, which wasn't what was intended.  This was "fixed" in 10.26.

I think maybe a reasonable compromise is to increment the number for each processed file as intended, and also increment the number if the output file already exists.  I will implement this in 10.59 and do a release ASAP.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

wilfo

Hi Phil
i would be very glad of such an implementation.
Many thanks for your efforts so far.
wilfo

Phil Harvey

Hi Wilfo,

OK, done.  ExifTool 10.59 is now available.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).