Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to pipe images to primitive and output result to stdio #71

Merged
merged 1 commit into from
Feb 14, 2019

Conversation

sylvaindumont
Copy link
Contributor

read file from stdin with -i -
output file to stdout with -o -

It allows to combinate primitive with other tools.

@maxnordlund
Copy link

@fogleman this would be very useful, and sort of close #78.

@fogleman fogleman merged commit 673f57e into fogleman:master Feb 14, 2019
maxnordlund added a commit to maxnordlund/sqip that referenced this pull request Mar 2, 2019
This uses primitives new `-o -` option to print the resulting SVG to
stdout. That means we don't need to use a temporary file to capture the
output, which both means one less dependency and running a tad bit
faster. Though to be fair, the run time for primitive dwarfs pretty much
all IO.

fogleman/primitive#71
maxnordlund added a commit to maxnordlund/sqip that referenced this pull request Mar 3, 2019
This uses primitives new `-o -` option to print the resulting SVG to
stdout. That means we don't need to use a temporary file to capture the
output, which both means one less dependency and running a tad bit
faster. Though to be fair, the run time for primitive dwarfs pretty much
all IO.

fogleman/primitive#71
maxnordlund added a commit to maxnordlund/sqip that referenced this pull request Mar 5, 2019
This uses primitives new `-o -` option to print the resulting SVG to
stdout. That means we don't need to use a temporary file to capture the
output, which both means one less dependency and running a tad bit
faster. Though to be fair, the run time for primitive dwarfs pretty much
all IO.

fogleman/primitive#71
axe312ger pushed a commit to axe312ger/sqip that referenced this pull request Apr 8, 2019
This uses primitives new `-o -` option to print the resulting SVG to
stdout. That means we don't need to use a temporary file to capture the
output, which both means one less dependency and running a tad bit
faster. Though to be fair, the run time for primitive dwarfs pretty much
all IO.

fogleman/primitive#71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants