Skip to content

dujigui/imgmerge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image merge

下载回来的旅游攻略是多张图片的形式,写了这个程序垂直拼接图片,方便查看。

使用

go get -u github.com/dujigui/imgmerge
imgmerge

上述命令生成:

Usage:
1. imgmerge -od ~/Desktop/ -i ~/Desktop/imgs
2. imgmerge -of ~/Desktop/imgmerge.png ~/Desktop/1.jpg ~/Desktop/2.jpg
3. imgmerge -od ~/Desktop -m min -i ~/Desktop/imgs
4. imgmerge -od ~/Desktop -i ~/Desktop/imgs -s 1.5
  -i string
    	input directory
  -m string
    	merge mode, max or min (default "max")
  -od string
    	output folder.
  -of string
    	output file.
  -s float
    	scale the output.

编译

要求

  1. go1.11.2
  2. 启动 go module

步骤

git clone [email protected]:dujigui/imgmerge.git
cd imgmerge
go mod tidy
go build .

Todo

  1. 增加test*.go
  2. 优化程序出错时的提示

About

merge image vertically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages