Struggling to consolidate multiple files into multi-page TIFFs using PyLiff, Libtiff, or anything that will work.
I'm consolidating thousands of files with arbitrary eight digit IDs followed by page numbers:
Directory named as date \images\1999\10\14
Group of files 1 01234567_0001.tif, 01234567_0002.tif, 01234567_0003.tif
Group of files 2 07654321_0001.tif, 07654321_0002.tif
Following conversion I'd like to have two files:
- 01234567.tif (3 page mulipage TIFF file)
- 07654321.tif (2 page multipage TIFF file)
And so on. Please give guidance on script and consolidation that will segregate by first 8 digits, merge files with that unique eight digit number, and rename the new (consolidated) file as the appropriate 8-digit-number.tiff
I realize this seems without effort. I have many disparate scripts and approaches that would muddy the waters of this forum.