in thumbnails4j-pptx/src/main/java/co/elastic/thumbnails4j/pptx/PPTXThumbnailer.java [64:76]
public List<BufferedImage> getThumbnails(InputStream input, List<Dimensions> dimensions) throws ThumbnailingException {
try (XMLSlideShow pptx = new XMLSlideShow(input)) {
BufferedImage image = pptxToImage(pptx);
List<BufferedImage> results = new ArrayList<>();
for(Dimensions singleDimension: dimensions){
results.add(ThumbnailUtils.scaleImage(image, singleDimension));
}
return results;
} catch (IOException e) {
logger.error("Failed to parse PPTX from stream: ", e);
throw new ThumbnailingException(e);
}
}