Read the complete article on how to convert PowerPoint PPT/PPTX to GIF in Python: https://blog.aspose.com/2022/02/24/convert-ppt-to-gif-in-python/
Last active
February 24, 2022 15:44
-
-
Save aspose-com-gists/f5069f87659431e7bf30e4679558880c to your computer and use it in GitHub Desktop.
Convert PowerPoint PPT/PPTX to Animated GIF in Python
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
import aspose.slides as slides | |
import aspose.pydrawing as drawing | |
# Load presentation | |
with slides.Presentation("presentation.pptx") as presentation: | |
# Set additional options | |
options = slides.export.GifOptions() | |
options.frame_size = drawing.Size(960, 720) # the size of the resultant GIF | |
options.default_delay = 2000 # how long each slide will be showed before moving to the next one | |
options.transition_fps = 35 # increase FPS for better transition animation quality | |
# Save as GIF | |
presentation.save("ppt-to-gif.gif", slides.export.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
import aspose.slides as slides | |
# Load presentation | |
with slides.Presentation("presentation.pptx") as presentation: | |
# Save as GIF | |
presentation.save("ppt-to-gif.gif", slides.export.SaveFormat.GIF) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment