From 12b91cadb6c7e4e7dab75919da1eb89f8e994d7f Mon Sep 17 00:00:00 2001 From: qeesung <1245712564@qq.com> Date: Fri, 26 Oct 2018 00:35:47 +0800 Subject: [PATCH] rename example directory to docs --- README.md | 30 +++++++++--------- {example => docs}/images/baozou.gif | Bin {example => docs}/images/baozou.jpg | Bin {example => docs}/images/baozou_ascii.png | Bin .../images/baozou_ascii_colored.png | Bin {example => docs}/images/demo.gif | Bin {example => docs}/images/lufei.gif | Bin {example => docs}/images/lufei.jpg | Bin {example => docs}/images/lufei_ascii.png | Bin .../images/lufei_ascii_colored.png | Bin {example => docs}/images/peiqi.png | Bin {example => docs}/images/pikaqiu.gif | Bin {example => docs}/images/pikaqiu.jpeg | Bin {example => docs}/images/pikaqiu_ascii.png | Bin .../images/pikaqiu_ascii_colored.png | Bin 15 files changed, 15 insertions(+), 15 deletions(-) rename {example => docs}/images/baozou.gif (100%) rename {example => docs}/images/baozou.jpg (100%) rename {example => docs}/images/baozou_ascii.png (100%) rename {example => docs}/images/baozou_ascii_colored.png (100%) rename {example => docs}/images/demo.gif (100%) rename {example => docs}/images/lufei.gif (100%) rename {example => docs}/images/lufei.jpg (100%) rename {example => docs}/images/lufei_ascii.png (100%) rename {example => docs}/images/lufei_ascii_colored.png (100%) rename {example => docs}/images/peiqi.png (100%) rename {example => docs}/images/pikaqiu.gif (100%) rename {example => docs}/images/pikaqiu.jpeg (100%) rename {example => docs}/images/pikaqiu_ascii.png (100%) rename {example => docs}/images/pikaqiu_ascii_colored.png (100%) diff --git a/README.md b/README.md index 907bb6d..38a9c0a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/example/images/baozou.gif b/docs/images/baozou.gif similarity index 100% rename from example/images/baozou.gif rename to docs/images/baozou.gif diff --git a/example/images/baozou.jpg b/docs/images/baozou.jpg similarity index 100% rename from example/images/baozou.jpg rename to docs/images/baozou.jpg diff --git a/example/images/baozou_ascii.png b/docs/images/baozou_ascii.png similarity index 100% rename from example/images/baozou_ascii.png rename to docs/images/baozou_ascii.png diff --git a/example/images/baozou_ascii_colored.png b/docs/images/baozou_ascii_colored.png similarity index 100% rename from example/images/baozou_ascii_colored.png rename to docs/images/baozou_ascii_colored.png diff --git a/example/images/demo.gif b/docs/images/demo.gif similarity index 100% rename from example/images/demo.gif rename to docs/images/demo.gif diff --git a/example/images/lufei.gif b/docs/images/lufei.gif similarity index 100% rename from example/images/lufei.gif rename to docs/images/lufei.gif diff --git a/example/images/lufei.jpg b/docs/images/lufei.jpg similarity index 100% rename from example/images/lufei.jpg rename to docs/images/lufei.jpg diff --git a/example/images/lufei_ascii.png b/docs/images/lufei_ascii.png similarity index 100% rename from example/images/lufei_ascii.png rename to docs/images/lufei_ascii.png diff --git a/example/images/lufei_ascii_colored.png b/docs/images/lufei_ascii_colored.png similarity index 100% rename from example/images/lufei_ascii_colored.png rename to docs/images/lufei_ascii_colored.png diff --git a/example/images/peiqi.png b/docs/images/peiqi.png similarity index 100% rename from example/images/peiqi.png rename to docs/images/peiqi.png diff --git a/example/images/pikaqiu.gif b/docs/images/pikaqiu.gif similarity index 100% rename from example/images/pikaqiu.gif rename to docs/images/pikaqiu.gif diff --git a/example/images/pikaqiu.jpeg b/docs/images/pikaqiu.jpeg similarity index 100% rename from example/images/pikaqiu.jpeg rename to docs/images/pikaqiu.jpeg diff --git a/example/images/pikaqiu_ascii.png b/docs/images/pikaqiu_ascii.png similarity index 100% rename from example/images/pikaqiu_ascii.png rename to docs/images/pikaqiu_ascii.png diff --git a/example/images/pikaqiu_ascii_colored.png b/docs/images/pikaqiu_ascii_colored.png similarity index 100% rename from example/images/pikaqiu_ascii_colored.png rename to docs/images/pikaqiu_ascii_colored.png -- 2.45.2