// For complete examples and data files, please go to https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java
String sourcePath = Utilities.sourcePath + sourceFile;
//path to image folder
String imageFolderPath = Utilities.resultFilePath.toString();
//Open document
ComparisonPresentationBase presentation = new ComparisonPresentation(sourcePath);
//Set settings
ComparisonSlidesImageSettings settings = new ComparisonSlidesImageSettings();
//Save as Image
presentation.saveAsImages(imageFolderPath, settings);