GeneratePageThumbs is throwing error and GeneratePageThumb working fine. When I dig into this GeneratePageThumb is actually calling GeneratePageThumbs internally. So GeneratePageThumbs expect outputPath which is a string and output files can be multiple. GeneratePageThumbs should get outputDirectoryPath instead of outputFilePath and output file name should be handled within the function.
GeneratePageThumbs is throwing error and GeneratePageThumb working fine. When I dig into this GeneratePageThumb is actually calling GeneratePageThumbs internally. So GeneratePageThumbs expect outputPath which is a string and output files can be multiple. GeneratePageThumbs should get outputDirectoryPath instead of outputFilePath and output file name should be handled within the function.