Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using an Ubuntu system. I want to convert ppt or pptx to jpg using terminal commands.

I have libreOffice and ImageMagick installed in my system. I am successfully converting pdf to jpgs using the following command in the terminal -

convert xxx.pdf somefile.jpg

But when i give the first parameter as a ppt it throws off the following error -

convert: no decode delegate for this image format xxx.ppt' @ error/constitute.c/ReadImage/533. convert: missing an image filenamesomefile.jpg' @ error/convert.c/ConvertImageCommand/2940.

Please help.

share|improve this question

migrated from Feb 10 '12 at 12:55

This question came from our site for professional and enthusiast programmers.

Have you wondered if ppt listed as recognized format for ImageMagick? – CharlesB Feb 6 '12 at 14:19
Yeah ur right. Found out that ImageMagick doesn't recognise ppt but can you tell me how can i do the conversion. – dibya mohanty Feb 6 '12 at 14:41
No idea; ask on Super User – CharlesB Feb 6 '12 at 15:32

In this answer to a related question it's explained that one way to transform from ppt to pdf from the command line is through unoconv.

Hence, to convert from ppt to jpg you could use something like this:

unoconv <filename>.ppt <filename>.pdf
convert <filename>.pdf <filename>.jpg

where is the name of the file you want to convert without the extension.

share|improve this answer
this works but the quality of the jpg is bad. Do u know how can i get better quality? – dibya mohanty Feb 6 '12 at 21:19
got it by using the density parameter. Thanks for the help – dibya mohanty Feb 7 '12 at 19:59

You must log in to answer this question.