~dricottone/image2ascii

ref: 85eb98c10570e799d3d36e23ca061b79706d48e2 image2ascii/README.md -rw-r--r-- 1.0 KiB
85eb98c1 — qeesung remove some useless code 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