How to convert pptx files to jpg or png (for each slide) on linux?

最后都变了- 提交于 2019-11-30 02:31:55

After Installing unoconv and LibreOffice you can use:

unoconv --export Quality=100 filename.pptx filename.pdf 

to convert your presentation to a pdf. For further options look here.

Afterwards you can - as already said above - use:

convert -density 400 my_filename.pdf -resize 2000x1500 my_filename%d.jpg 

to receive the images.

Not sure about libreoffice, but afaik its the only program to deal with pptx files.

I found this http://ask.libreoffice.org/en/question/23851/converting-pptx-to-pdf-issue/

If you have pdfs you can use imagemagick to output any quality pictures

Convertion PPTX to PNG/JPG

This solution requires LibreOffice ( soffice ) and Ghostscript ( gs )

sudo apt install libreoffice ghostscript

Then two steps:

  1. PPTX -> PDF
soffice --headless --convert-to pdf prezentacja.pptx
  1. PDF -> PNG/JPG
gs -sDEVICE=pngalpha -o slajd-%02d.png -r96 prezentacja.pdf
  • -o slajd-%02d.png - output to file, %02d slajd number, two digits
  • -r96 - resolution:
    • 96 -> 1280x720
    • 144 -> 1920x1080
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!