Commit 30d4fc79 authored by Nathan/Eilisha Shiraini's avatar Nathan/Eilisha Shiraini
Browse files

Added possibility to send image to stdout

parent ad6cf472
......@@ -7,6 +7,7 @@ including argument parsing and main procedure
import argparse
import sys
from .loader import BUILDERS
from .imgen.interleave import INTERLEAVING_MODES, BEST_PARSE_MODE
......@@ -167,4 +168,7 @@ def main():
codes = [g.encode() for g in cgenInstances]
imgenerator = ImGenerator(codes, **imgenKwargs)
if outfile == "-":
imgenerator.saveImage(sys.stdout.buffer, format="png")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment