Ask Your Question
2

PPT to JPG

asked 2012-06-30 03:22:54 +0200

anonymous user

Anonymous

I am using the following command to convert ppt->jpg 'libreoffice --headless --invisible --convert-to jpg <file.ppt> --outdir

Is there a way to give a custom name to new file? Is there a way to resize the new image? (for example 200x200)

delete close flag offensive retag edit

3 Answers

Sort by » oldest newest most voted
2

answered 2012-06-30 20:10:30 +0200

pppphhhhpppp gravatar image pppphhhhpppp
36 1 7

updated 2012-06-30 23:01:18 +0200

Thanks a lot for your tips! Had trouble configuring unoconv; Thats why thought of the --convert-to alternative. But was able to get unoconv working.

link delete flag offensive edit

Comments

Hi @pppphhhhpppp. Thanks for letting us know how things worked out for you. Could you please (1) Edit your answer and add a little information on how you got unoconv working (it might help others who read this question), (2) Then mark one of the answers as the 'correct answer'. Thanks!

qubit ( 2012-07-28 15:19:13 +0200 )edit
1

answered 2012-06-30 08:38:22 +0200

qubit gravatar image qubit flag of United States
5816 3 50 43

I'm not sure if the output filename or imagesize can be specified as parameters to LO, but you could certainly make a script that would take the name of a given PowerPoint file, an output filename, and a desired image size, and perform all three steps in order for you. Something like this:

$ ./ppt2jpeg.sh my-powerpoint.ppt my-output-image.jpg 200 200

If you'd like help writing a script that could perform this kind of operation, please leave a comment below.

The convert program is a part of the ImageMagick package. It can do all kinds of image conversions, resizings, etc. If all you want to do is resize the image in a separate step, after the conversion, you can change your image to 200px x 200px using the following command:

$ convert -size 200x200 my-image.jpg

To preserve the correct aspect ratio, when using this particular script, the input image must already be square.

link delete flag offensive edit
0

answered 2012-07-28 01:02:50 +0200

cloph gravatar image cloph
2842 6 20 44

There's also an extension that can be used to export a presentation to jpg

http://extensions.libreoffice.org/extension-center/export-as-images

That extension allows you to specify the desired size.

link delete flag offensive edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-06-30 03:22:54 +0200

Seen: 642 times

Last updated: Jul 28 '12