~dricottone/image2ascii

ref: 13eabe50168c938416e803bb95ea8fa9fb407bf4 image2ascii/README.md -rw-r--r-- 1.0 KiB
13eabe50 — qeesung add example 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