~dricottone/image2ascii

ref: e7b10cae4c6e2b75540d60a1604d3f9961af3e7a image2ascii/README.md -rw-r--r-- 1.0 KiB
e7b10cae — qeesung change the char width to 0.5 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