First time here? Check out the FAQ!
asked 2012-06-30 03:22:54 +0200
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)
answered 2012-06-30 08:38:22 +0200qubit
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.
answered 2012-07-28 01:02:50 +0200cloph
There's also an extension that can be used to export a presentation to jpg
That extension allows you to specify the desired size.
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!
Asked: 2012-06-30 03:22:54 +0200
Seen: 642 times
Last updated: Jul 28 '12