~dricottone/image2ascii

ref: bc12009269bd9cb001140d5fc903d01740b83620 image2ascii/README.md -rw-r--r-- 1.0 KiB
bc120092 — qeesung add new method to convert a image from filename directly 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