How to convert .pptx slides to .jpg or .png images on Linux in command line?

How to convert .pptx slides to .jpg or .png images on Linux in command line?

asked Jan 11, 2015 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

This following method works best for me.

First, convert .pptx file to .pdf using libreoffice:

libreoffice --headless --convert-to pdf file.pptx

--headless makes libreoffice run in batch mode and not start the GUI. The pdf file will be named file.pdf by replacing the .pptx with .pdf in the original file name.

Second, convert .pdf file to .jpg using convert:

convert -density 400 -resize 3000^ file.pdf file%d.jpg

-resize 3000^ specifies the width in px of the image files. .jpg images will be named file0, file1, file2, ... numbered following the slide numbers.

answered Jan 22, 2015 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...