bobibo

package module
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

README

🐱 Bobibo

😗 Introduce

Bobibo is a simple cli-tool, it can convert pictures(jpeg, png, even gif) to ascii arts using braille unicode.

I wrote it, cause i need some anime ascii arts. 💩

If you are looking for colorization, you might be interested in this img2art.

🎞️ Screenshot

image
bobibobibobobibo
image
image
inverse when your background is too light.
image
gif, not much use though. 💩

👇 Install

  1. releases download.
  2. build yourself, makefile in makefile.
  3. maybe used as sdk ? go get github.com/orzation/bobibo.
  4. AUR use yay/paru -S bobibo.
  5. NixOS callPackage default.nix.

🍰 How2use

bobibo [-option] /path/to/image.png

options:

  • -v enable inverse the character color.
  • -g enable gif mode(test), print every frame of gif image.
  • -l use network url to load image.
  • -s value set the scale for images(value default 0.5, (0, +)).
  • -t value set the threshold of binarization(value default generate by OTSU, [-1, 255]).

use bobibo -h to print options. use bobibo version to print version.

⚙️ Contribute

hope so 💩

  1. fork
  2. do your things
  3. pull request

📄 License

GPLV3.0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoBiBo

func BoBiBo(ima io.Reader, isGif, isInverse bool, opts ...Option) (<-chan Art, error)

Types

type Art added in v1.2.0

type Art struct {
	Content []string
	Delay   int
}

type Option

type Option func(p *Params) error

func ScaleOpt added in v1.2.0

func ScaleOpt(scale float64) Option

func ThresholdOpt added in v1.2.0

func ThresholdOpt(thre int) Option

type Params

type Params struct {
	Image     io.Reader
	Gif       bool
	Inverse   bool
	Scale     float64
	Threshold int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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