goski

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 16 Imported by: 0

README

GOSKI

Goski converts images into ASCII art. It supports both colored and grayscale ASCII art and can automatically scale the output to fit within your terminal window.

It also supports using a remote resource by using its url.

Installation

Recommended

go install github.com/musaubrian/goski@latest

or

git clone https://github.com/musaubrian/goski

cd goski
go build .

#run the executable

Usage

Run the program with the following command-line options:

goski -img <path-to-image> [-c] [-s] [-r]

Options:

  • img <image-path>: Specifies the path to the image file you want to convert.(Required)
  • c: Outputs ASCII art with color. By default, the ASCII art is grayscale.
  • s: Automatically *scales the output to fit the dimensions of your terminal.(defaults to true)
  • r: Allows you to pass in a resource (image) from the interwebs by using the image url in the img flag

[!NOTE] To have a good time with the remote resource flag, wrap the url in quotation marks. goski -c -img "<really_long_and_or_complex_url>" -r

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL