I have around two to five hundred single-page TIFFs to combine into a single multipage TIFF.
With the following code, it begins to process files at a rate of 5 to 10 seconds each, but after 12 hours, it is still processing.
If I move the Save outside of the for-loop (save only at the end), then the AddFrame steps run quickly, but the Save never completes.
I can manually combine the 500 files in an editor in seconds.
Is there an alternative means to get this to perform?
for (int counter = 0; counter < filesArray.Length; counter++)
{
using (TiffImage imageWork = (TiffImage)Aspose.Imaging.Image.Load(pageOneTiff))
{
using (TiffImage imageCur =
(TiffImage)Aspose.Imaging.Image.Load(filesArray[counter].FullName))
{
TiffFrame frame = TiffFrame.CopyFrame(imageCur.ActiveFrame);
imageWork.AddFrame(frame);
imageWork.Save(fileOutTmp);
}
}
}