~dricottone/image2ascii

ref: 37db9eac315481fc3fdf8e66227214db22b40710 image2ascii/README.md -rw-r--r-- 1.0 KiB
37db9eac — qeesung update the git ignore file 6 years ago

#image2ascii

Convert image to ASCII

#installation

go get https://github.com/qeesung/image2ascii

#usage

package main

import (
	"fmt"
	"github.com/qeesung/image2ascii/convert"
	_ "image/jpeg"
	_ "image/png"
)

func main() {
	fmt.Print(convert.ImageFile2ASCIIString("example/images/baozou.jpg", &convert.Options{
		Ratio: 0.5,
	}))
}

#example outputs

Raw Image ASCII Image