~dricottone/image2ascii

12b91cadb6c7e4e7dab75919da1eb89f8e994d7f — qeesung 6 years ago 5247057
rename example directory to docs
15 files changed, 15 insertions(+), 15 deletions(-)

M README.md
R example/images/baozou.gif => docs/images/baozou.gif
R example/images/baozou.jpg => docs/images/baozou.jpg
R example/images/baozou_ascii.png => docs/images/baozou_ascii.png
R example/images/baozou_ascii_colored.png => docs/images/baozou_ascii_colored.png
R example/images/demo.gif => docs/images/demo.gif
R example/images/lufei.gif => docs/images/lufei.gif
R example/images/lufei.jpg => docs/images/lufei.jpg
R example/images/lufei_ascii.png => docs/images/lufei_ascii.png
R example/images/lufei_ascii_colored.png => docs/images/lufei_ascii_colored.png
R example/images/peiqi.png => docs/images/peiqi.png
R example/images/pikaqiu.gif => docs/images/pikaqiu.gif
R example/images/pikaqiu.jpeg => docs/images/pikaqiu.jpeg
R example/images/pikaqiu_ascii.png => docs/images/pikaqiu_ascii.png
R example/images/pikaqiu_ascii_colored.png => docs/images/pikaqiu_ascii_colored.png
M README.md => README.md +15 -15
@@ 9,7 9,7 @@

Image2ASCII is a library that converts images into ASCII images and provides command-line tools for easy use.

![demo](https://github.com/qeesung/image2ascii/blob/master/example/images/lufei.gif?raw=true)
![demo](https://github.com/qeesung/image2ascii/blob/master/docs/images/lufei.gif?raw=true)

## Installation



@@ 43,33 43,33 @@ convert the image to ascii image with fixed width and height
```bash
# width: 100
# height: 30
image2ascii -f example/images/baozou.jpg -w 100 -g 30
image2ascii -f docs/images/baozou.jpg -w 100 -g 30
```
![demo](https://github.com/qeesung/image2ascii/blob/master/example/images/baozou.gif?raw=true)
![demo](https://github.com/qeesung/image2ascii/blob/master/docs/images/baozou.gif?raw=true)

convert the image to ascii image by ratio
```bash
# ratio: 0.3
# width: imageWidth * 0.3
# height: imageHeight * 0.3
image2ascii -f example/images/pikaqiu.jpg -r 0.3
image2ascii -f docs/images/pikaqiu.jpg -r 0.3
```
![demo](https://github.com/qeesung/image2ascii/blob/master/example/images/pikaqiu.gif?raw=true)
![demo](https://github.com/qeesung/image2ascii/blob/master/docs/images/pikaqiu.gif?raw=true)


convert the image to ascii fit the screen
```bash
image2ascii -f example/images/lufei.jpg -s
image2ascii -f docs/images/lufei.jpg -s
```

convert the image without the color
```bash
image2ascii -f example/images/lufei.jpg -s -c=false
image2ascii -f docs/images/lufei.jpg -s -c=false
```

convert the image disable fit the screen
```bash
image2ascii -f example/images/lufei.jpg -s=false
image2ascii -f docs/images/lufei.jpg -s=false
```

## Library usage


@@ 85,7 85,7 @@ import (
)

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


@@ 121,12 121,12 @@ func ImageFile2ASCIIString(imageFilename string, option *Options) string {}

| Raw Image                                                                                       | ASCII Image                                                                                                |
|:-----------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------:|
| ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/example/images/lufei.jpg)      | ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/example/images/lufei_ascii.png)           |
| ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/example/images/lufei.jpg)      | ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/example/images/lufei_ascii_colored.png)   |
| ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/example/images/pikaqiu.jpeg)   | ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/example/images/pikaqiu_ascii.png)         |
| ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/example/images/pikaqiu.jpeg)   | ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/example/images/pikaqiu_ascii_colored.png) |
| ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/example/images/baozou.jpg)     | ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/example/images/baozou_ascii.png)          |
| ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/example/images/baozou.jpg)     | ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/example/images/baozou_ascii_colored.png)  |
| ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/docs/images/lufei.jpg)      | ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/docs/images/lufei_ascii.png)           |
| ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/docs/images/lufei.jpg)      | ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/docs/images/lufei_ascii_colored.png)   |
| ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/docs/images/pikaqiu.jpeg)   | ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/docs/images/pikaqiu_ascii.png)         |
| ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/docs/images/pikaqiu.jpeg)   | ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/docs/images/pikaqiu_ascii_colored.png) |
| ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/docs/images/baozou.jpg)     | ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/docs/images/baozou_ascii.png)          |
| ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/docs/images/baozou.jpg)     | ![](https://raw.githubusercontent.com/qeesung/image2ascii/master/docs/images/baozou_ascii_colored.png)  |


## License

R example/images/baozou.gif => docs/images/baozou.gif +0 -0
R example/images/baozou.jpg => docs/images/baozou.jpg +0 -0
R example/images/baozou_ascii.png => docs/images/baozou_ascii.png +0 -0
R example/images/baozou_ascii_colored.png => docs/images/baozou_ascii_colored.png +0 -0
R example/images/demo.gif => docs/images/demo.gif +0 -0
R example/images/lufei.gif => docs/images/lufei.gif +0 -0
R example/images/lufei.jpg => docs/images/lufei.jpg +0 -0
R example/images/lufei_ascii.png => docs/images/lufei_ascii.png +0 -0
R example/images/lufei_ascii_colored.png => docs/images/lufei_ascii_colored.png +0 -0
R example/images/peiqi.png => docs/images/peiqi.png +0 -0
R example/images/pikaqiu.gif => docs/images/pikaqiu.gif +0 -0
R example/images/pikaqiu.jpeg => docs/images/pikaqiu.jpeg +0 -0
R example/images/pikaqiu_ascii.png => docs/images/pikaqiu_ascii.png +0 -0
R example/images/pikaqiu_ascii_colored.png => docs/images/pikaqiu_ascii_colored.png +0 -0