pycharmers.cli.image2pptx module

pycharmers.cli.image2pptx.image2pptx(argv=['-M', 'html', '.', '_build'])[source]

Paste images to PowerPoint.

Parameters
  • --image-path (Path, optional) – Paths to image files. Defaults to ().

  • --image-dir (Path, optional) – Path to the directory where images are. Defaults to None.

  • -W/--slide-width (int, optional) – The width of PowerPoint slide. Defaults to 9144000.

  • -H/--slide-height (int, optional) – The height of PowerPoint slide. Defaults to 6858000.

  • --slide-size (str, optional) – The size of PowerPoint slide. Please chose from ["4:3", "16:9"]. Defaults to "4:3".

  • -O/--outpptx (Path, optional) – The path to the created PowerPoint. Defaults to Path("test.pptx").

Note

When you run from the command line, execute as follows:

$ image2pptx --image-path /path/to/image1.png \
                          /path/to/image2.jpg \
                          /path/to/image3.jpeg \
             --image_dir /path/to/image_dir \
             --slide-size "16:9" \
             --outpptx "image.pptx"