# imageEncodeBase64 **Repository Path**: sunnyrust/imageEncodeBase64 ## Basic Information - **Project Name**: imageEncodeBase64 - **Description**: 使用D语言开发,把gif、png、jpeg转成base64 - **Primary Language**: D - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-11-11 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: image-processing **Tags**: None ## README # imageEncodeBase64 #### 介绍 使用D语言开发,把gif、png、jpeg转成base64。 本程序的目的是读取文件区分图片文件是gif、jpeg、png。 根据文件头,不同的图片格式有不同的文件头 |文件类型|文件头| |--|--| |jpeg|ffd8ffe0| |png|89504e47| |gif|47494638| #### 当前版本是V0.0.2 #### 软件架构 软件架构说明 软件开发在Ubuntu 18.04下面(不过应该在Windows下估计是可以使用的)。 开发语言:D ```go dmd --version DMD64 D Compiler v2.089.0 dub --version DUB version 1.18.0, built on Nov 2 2019 ``` #### 安装教程 ```go git clone https://gitee.com/sunnyrust/imageEncodeBase64 cd imageEncodeBase64/ dub build ./imageEncodeBase64 -h Some information about the program. -v --version 版本号 --author Sunny -f --file 图像文件名 -h --help This help information. ./imageEncodeBase64 --author ``` #### 使用说明 ./imageEncodeBase64 -f 2.gif 会在目录下面生成 2.gif.base64,打开这个文件就可以看到base64编码。 #### 参与贡献 1. Fork 本仓库 Sunny 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)