Convert image format.
Project description
img2img
🔮快速转化图片格式
🚨更新日志:
v0.0.1
初始化项目,添加在命令行使用 jpg2png 方法。
1 功能
- 转化图片格式;
- 支持在命令行调用;
- 支持在网页上使用。(开发中)
2 安装
2.1 使用 pip 安装
pip install img2img
2.2 从代码库安装
git clone https://github.com/HaveTwoBrush/img2img.git
cd img2img
Python setup.py install
3 使用
3.1 在代码中调用
# 在文件首部引入包
import img2img
# 查看版本
img2img.__version__
# output: 0.0.1
1 jpg2png
开发中...
3.2 在命令行中使用
1 jpg2png
jpg2png $your_jpg_path
# png 图片会保存在相同目录下
4 版本支持
- 理论上支持
Windows
、MacOS
、Ubuntu
下的所有Python 3.6
的版本。 - 实际上仅在
Windows 10
、MacOS 10.14
、Ubuntu 16.04
的Python 3.6.3
上做过完整测试。 - 欢迎提交其他版本使用情况到 Issues 中,期待你的反馈。
- 如果你有
Python 2
的使用需求,可 Fork 代码自行修改。当然也欢迎提 PR,贡献自己代码给其他人。
5 协议
6 参考
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
img2img-0.0.1.tar.gz
(221.1 kB
view hashes)