Compare commits
2 commits
be8369373f
...
7d40569aa1
Author | SHA1 | Date | |
---|---|---|---|
7d40569aa1 | |||
83f9c32328 |
2 changed files with 7 additions and 3 deletions
|
@ -26,7 +26,8 @@ build: off
|
||||||
|
|
||||||
after_test:
|
after_test:
|
||||||
- "%PYTHON%\\python.exe setup.py bdist_wheel"
|
- "%PYTHON%\\python.exe setup.py bdist_wheel"
|
||||||
- "%PYTHON%\\python.exe -m PyInstaller --clean --onefile --noconsole src/img2pdf.py"
|
- "%PYTHON%\\python.exe -m PyInstaller --clean --onefile --console --nowindowed --name img2pdf src/img2pdf.py"
|
||||||
|
#- "%PYTHON%\\python.exe -m PyInstaller --clean --onefile --noconsole --windowed --name img2pdf_windowed src/img2pdf.py"
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: dist\*
|
- path: dist\*
|
||||||
|
|
|
@ -2459,7 +2459,6 @@ def find_scale(pagewidth, pageheight):
|
||||||
# as a binary string representing the image content or as filenames to the
|
# as a binary string representing the image content or as filenames to the
|
||||||
# images.
|
# images.
|
||||||
def convert(*images, **kwargs):
|
def convert(*images, **kwargs):
|
||||||
|
|
||||||
_default_kwargs = dict(
|
_default_kwargs = dict(
|
||||||
engine=None,
|
engine=None,
|
||||||
title=None,
|
title=None,
|
||||||
|
@ -4246,7 +4245,11 @@ and left/right, respectively. It is not possible to specify asymmetric borders.
|
||||||
elif len(args.images) == 0 and len(args.from_file) == 0:
|
elif len(args.images) == 0 and len(args.from_file) == 0:
|
||||||
# if no positional arguments were supplied, read a single image from
|
# if no positional arguments were supplied, read a single image from
|
||||||
# standard input
|
# standard input
|
||||||
logger.info("reading image from standard input")
|
print(
|
||||||
|
"Reading image from standard input...\n"
|
||||||
|
"Re-run with -h or --help for usage information.",
|
||||||
|
file=sys.stderr
|
||||||
|
)
|
||||||
try:
|
try:
|
||||||
images = [sys.stdin.buffer.read()]
|
images = [sys.stdin.buffer.read()]
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
Loading…
Reference in a new issue