answered
2012-06-30 08:38:22 +0200
qubit
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.