Skip to content

Conversation

@rockwellll
Copy link
Contributor

@rockwellll rockwellll commented Aug 3, 2025

Adds support for a CLI script with basic options to allow a quick way to capture directly without needing a script. Following options are accepted,

  • --format, -f - Image format (jpeg, png). Default: jpeg
  • --quality, -q - Image quality (1-100). Default: 90
  • --area, -a - Capture area (viewport, page). Default: viewport
  • --encoding, -e - Output encoding (binary, base64). Default: base64
  • --output, -o - Output destination, defaults to the current directory.
  • --help, -h - Show help message

Examples

# Basic usage
kleya https://www.hellotext.com

# With options
kleya https://www.hellotext.com --format png --quality 95 --area page

Bugfixes

  • Fixes a small bug where if you provided a filename without an extension kleya would not have appended the correct extension, resulting in a corrupted file.

@rockwellll rockwellll merged commit fcd7dfc into master Aug 3, 2025
1 check passed
@rockwellll rockwellll deleted the cli branch August 3, 2025 07:21
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.

2 participants