https://github.com/billryan/fig_composite
Figure Composition using PIL
https://github.com/billryan/fig_composite
Last synced: about 1 month ago
JSON representation
Figure Composition using PIL
- Host: GitHub
- URL: https://github.com/billryan/fig_composite
- Owner: billryan
- License: mit
- Created: 2014-08-26T08:22:27.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-26T15:31:40.000Z (over 11 years ago)
- Last Synced: 2025-01-14T17:38:03.617Z (12 months ago)
- Language: Python
- Size: 9.99 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### 依赖
如果是直接运行Python程序的话需要PIL, numpy。如果用pillow2.0以上的话就不需要`alpha_composite`方法了,进而也就不需要numpy,用`Image.alpha_composite`代替就好,之所以造了个`alpha_composite`的轮子是因为pillow 2.0以下或者原生PIL不提供此方法...
## 使用说明
`pic_raw`为源图片存放目录,里边必须要有`original.png`作为原始图片,其他元素图片随意(可以以子文件夹形式存放)。
运行`fig_composite.py`或是双击相应打包好的exe文件(需与`pic_raw`同一目录)后即可在当前目录下看到处理好的`pic_composite`文件夹,里边的文件即是混合之后的图片。