Skip to content

namesfang/genb64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

将文件转为base64

在windows平台可以双击main.exe执行文件 自动生成对应的base64文件(.b64.txt)

$ ./main.exe # 生成当前目录中的(ttf,jpg,png,ico,txt)文件生成对应的base64文件(.b64.txt)

$ ./main.exe -R # 递归生成当前目录中的(ttf,jpg,png,ico和txt)文件生成对应的base64文件(.b64.txt)

$ ./main.exe -R --accept=jpg,png # 递归生成目录中的(jpg和png)文件生成对应的base64文件(.b64.txt)

$ ./main.exe -P # 生成当前目录中的(ttf,jpg,png,ico,txt)文件生成对应的base64文件(.b64.txt)并添加web前端需要的data:image/png;base64,内容

$ ./main.exe -P /home/dev/logo.png # 将logo.png生成对应的base64文件(.b64.txt)并添加web前端需要的data:image/png;base64,内容

$ ./main.exe -P -R c:/home/dev/pic # 递归生成指定目录中的(ttf,jpg,png,ico,txt)文件生成对应的base64文件(.b64.txt)并添加web前端需要的data:image/png;base64,内容

About

将文件转为base64

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages