ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: wilfo on July 07, 2017, 03:58:36 AM

Title: Extracting PageImages from Indesign
Post by: wilfo on July 07, 2017, 03:58:36 AM
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

Title: Re: Extracting PageImages from Indesign
Post by: Hayo Baan on July 07, 2017, 05:55:07 AM
Could you post a (small) sample ind file that exhibits this problem?
Title: Re: Extracting PageImages from Indesign
Post by: wilfo on July 07, 2017, 06:42:44 AM
Hi
Example "Infile.indd" attached.
Thanks!
wilfo
Title: Re: Extracting PageImages from Indesign
Post by: Phil Harvey on July 07, 2017, 08:00:41 AM
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
Title: Re: Extracting PageImages from Indesign
Post by: wilfo on July 07, 2017, 08:30:33 AM
Hi Phil
i would be very glad of such an implementation.
Many thanks for your efforts so far.
wilfo
Title: Re: Extracting PageImages from Indesign
Post by: Phil Harvey on July 07, 2017, 09:02:08 AM
Hi Wilfo,

OK, done.  ExifTool 10.59 is now available.

- Phil