Read the complete article on how to convert PowerPoint PPT/PPTX to GIF in Java: https://blog.aspose.com/2022/01/15/convert-ppt-to-animated-gif-in-java/
Last active
February 25, 2022 10:16
-
-
Save aspose-com-gists/9391d376590f7710bf30223c6ea86423 to your computer and use it in GitHub Desktop.
Convert PowerPoint PPT/PPTX to Animated GIF in Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load presentation | |
Presentation presentation = new Presentation("presentation.pptx"); | |
// Set GIF options | |
GifOptions options = new GifOptions(); | |
options.setFrameSize(new Dimension(960, 720)); // the size of the resultant GIF | |
options.setDefaultDelay(2000); // how long each slide will be shown before moving to the next one | |
options.setTransitionFps(35); // increase FPS for better transition animation quality | |
// Save presentation as GIF | |
presentation.save("ppt-to-gif.gif", SaveFormat.Gif, options); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load presentation | |
Presentation presentation = new Presentation("presentation.pptx"); | |
// Save presentation as GIF | |
presentation.save("ppt-to-gif.gif", SaveFormat.Gif); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment