1 Star 0 Fork 0

8三万8 / eri2bmp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

eri2bmp

描述 Description

转换.eri文件为.bmp文件. (Convert .eri files to .bmp files.)

用法 Usage

  1. 下载 ericvt.exe . (Download ericvt.exe)
    下载地址(Download page)

  2. 创建 Eri2Bmp 类并调用成员函数 eris2bmps. (Instantiate class Eri2Bmp and invoke method eris2bmps)

#####

if __name__ == '__main__':
    src_folder = r"eri文件所在位置(where your .eri files locate)"     # 例: src_folder = r"D:\Downloads\ev"
    dst_folder = r"输出文件夹(output folder)"        # 例: dst_folder = r"D:\output\4"
    cvter = r"ericvt.exe文件路径(ericvt.exe file path)"   # 例: cvter = r"D:\Downloads\ericvt\ericvt.exe"

    e2b = Eri2Bmp(cvter, log=None)
    e2b.eris2bmps(src_folder, dst_folder, workers=4)

其他说明 Other Information

  • 构造函数参数 log (param log)
    参数 log 是 .log 文件的路径. (The param log defines the path of the .log file.)
    log 的缺省值是(The default vaule of log): "Eri2Bmp_{}.log".format(time.strftime("%Y_%m_%d_%H_%M_%S")).
  • 成员函数 eris2bmps 的参数 workers (The param workers of method eris2bmps)
    使用线程池 ThreadPoolExecutor 实现的多线程, workers 是最大线程. (Multithread implemented with ThreadPoolExecutor, where workers is the largest threads)
MIT License Copyright (c) 2019 Ivan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

转换.eri文件为.bmp文件. (Convert .eri files to .bmp files.) 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/ivanlon/eri2bmp.git
git@gitee.com:ivanlon/eri2bmp.git
ivanlon
eri2bmp
eri2bmp
master

搜索帮助