Skip to content

Conversation

@manzt
Copy link
Member

@manzt manzt commented Feb 26, 2025

Brings back support for single file inputs/outputs. In addition, the
flags for the command args are explicit and not positional.

Brings back support for single file inputs/outputs. In addition, the
flags for the command args are explicit and not positional.
@sehilyi
Copy link
Member

sehilyi commented Feb 27, 2025

Nice. I wondered whether I could just create an image for a single file, instead of using a directory as an input.

Comment on lines +6 to +15
node gosling-screenshot.js
# Usage: node gosling-screenshot.js [options] <input>
#
# Options:
# --format=[png|jpeg|webp] Output image format (default: png)
# --outdir=<directory> Directory to save the output image
# (required if input is a directory, optional otherwise)
#
# Arguments:
# input A Gosling specification file (JSON) or a directory of specifications
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@huyen-nguyen know you're crunched with time, but let me know if this new API is ok to merge!

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