I am looking for an automatic way to create power point presentation from the ensemble of input PNG pictures located in the same folder, following the simple algorithm executed from Linix / Mac OSX terminal with Bash:
for img in input_folder/*.png; do
some command to add $img to the new page >> ./presentation.pptx
done
I have tried to use Pandoc
pandoc -f png -s *.png -t pptx -o presentation.pptx
but the software did not recognize input format. Would it be possible to integrate it into my workflow to post-process images quickly ?
You should create a pandoc
document and embed the images there.
ls *jpg | sed 's/^/\n/' > file
pandoc file -t pptx -o presentation.ppt
If you're going to use it in a script, you'll need a more robust way to create the pandoc
file. Processing the output of ls
may be ok for a quick check, but not for serious scripting.