Convert specific ppt slides to images in linux, Ubuntu & Windows
Project description
Convert specific ppt slides to images in linux, Ubuntu & Windows
Hi there!
My name is Shrinivaasan, 19. Heads up to you, this is my first library.
For a project I needed to convert ppt slides to jpg images in a linux instance, but I was surprised to know that there was no package to convert slides into images in Linux & Ubuntu.
Hence decided to create a package myself that will work on linux, ubuntu, windows using just 2 external libraries which are also comaptible with linux & ubuntu
Usage
- pip install ppt2img
- make sure you install python-pptx and download libreoffice
Following have to be installed
Library Command to install
------- -----------------
python-pptx (pip install python-pptx)
libreoffice (sudo apt install libreoffice or
download it from libreoffice.org)
In version 0.0.1 there is only one function,
ppt2img(inputppt,slideno,outputpath,imgformat,sofficepath)
Expalanation of the function ppt2img()
-
inputppt : Path of source pptx. Should be in quotes like 'C:\Users\Dell\test.pptx'
-
slideno : Is a number(natural numbers only i.e 1,2,3,4,5,6,7 that it numbers from 1 increasing by 1)
-
outputpath : Path image output folder .Should be in quotes like 'C:\Users\Dell\imgoutput'
-
imgformat : Format of image. Should be in quotes and in lowercase like 'png' or 'jpg' 'jpeg'
-
sofficepath :
a) In Windows/Linux computer :Path of LibreOffice installation. Generally stored at C:\ProgramFiles folder Very Imp: Should be in double quotes like "C:\Program Files\LibreOffice\program\soffice.exe" Example: to get the 2nd slide as image; ppt2img('./ppt/test.pptx',2,'./imgoutput','jpg',"C:\Program Files\LibreOffice\program\soffice.exe") b) In Online Editor like Colab or Datalore: just type 'soffice' in the function in single quotes . Example:to get the 2nd slide as image; ppt2img('./ppt/test.pptx',2,'./imgoutput','jpg','soffice')
Contact me at : shravanshravan10@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ppt2img-0.0.1.tar.gz.
File metadata
- Download URL: ppt2img-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b94611cf6d6429d2fd83ed114a918bb929ffe60fbd3909c780029de7966fe2d2
|
|
| MD5 |
09694f7b1e81eb2f62b48faf5630e3c4
|
|
| BLAKE2b-256 |
cf9d6ecbd8e4772318bad9d2da91fed689b4940161c573a5239519ec2279b485
|
File details
Details for the file ppt2img-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ppt2img-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
847c6ce5de8b3322330d7dc918c23f6646e542fcd20e0e0d6e04a51a4c79ccf0
|
|
| MD5 |
69c30833665d49a399322110e9686781
|
|
| BLAKE2b-256 |
87ecc2244ab875df9af6e4792310a4b78e804b3514054d06cf4dad55591a5fe0
|