Skip to content
Snippets Groups Projects
Commit 189dedf0 authored by tuhe's avatar tuhe
Browse files

small api changes

parent 5fba8732
No related branches found
No related tags found
No related merge requests found
Pipeline #11627 failed
......@@ -2,7 +2,8 @@
# Use: pipreqs.exe slider --no-pin --force for requirements.txt
# https://packaging.python.org/tutorials/packaging-projects/
# py -m build && twine upload dist/*
# python -m build && twine upload dist/*
# Linux> python -m build && twine upload dist/*
# Local install: sudo pip install -e ./
import setuptools
with open("src/slider/version.py", "r", encoding="utf-8") as fh:
......
Metadata-Version: 2.1
Name: beamer-slider
Version: 0.1.25.5
Version: 0.1.25.6
Summary: Software to create inkscape overlays in Beamer
Home-page: https://lab.compute.dtu.dk/tuhe/slider
Author: Tue Herlau
......
......@@ -51,7 +51,7 @@ def pdf2svg(fin, fout, page_no=None):
execute_command(cmd)
def pdf2png(fin, fout=None, scale_to=None, page_to_convert=None):
def pdf2png(fin, fout=None, scale_to=None, page_to_convert=None, verbose=False):
if fout is None:
fout = fin[:-4] + ".png"
fout = fout[:-4]
......@@ -63,8 +63,11 @@ def pdf2png(fin, fout=None, scale_to=None, page_to_convert=None):
if scale_to is not None:
cmd += f" -scale-to {scale_to}"
execute_command(cmd.split())
fout = fout + ".png"
if verbose:
print("Converting", fin, "to", fout)
return fout + ".png"
return fout
def pdfcrop(fin, fout=None):
......
__version__ = "0.1.25.5"
\ No newline at end of file
__version__ = "0.1.25.6"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment