# cut_image **Repository Path**: ChrisLT/cut_image ## Basic Information - **Project Name**: cut_image - **Description**: 使用python PIL 库将一张照片切分为9张图 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-12 - **Last Updated**: 2020-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cut_image ### 使用python PIL 库将一张照片切分为9张图 ## 举例 #### 例子1:不规则图形,先填充白边再切分 ##### 原图: ![python](https://github.com/yangxuan0928/cut_image/blob/master/python.jpeg) ##### 进行切图后:
#### 例子2:其他照片 ##### 原图: ![python](https://github.com/yangxuan0928/cut_image/blob/master/dcapi.jpeg) ##### 进行切图后:
## 依赖 #### Python 2.7 PIL: pip install pillow #### Python 3 PIL: pip3 install pillow ## 运行 python3 cut_pic.py ## 用处 可以发一个高逼格的朋友圈 ## 推荐 查看文档及视频教程,请关注微信公众号:**大数据前沿** 消息窗口回复:**微信切图** 扫码下方二维码关注,更多好玩的项目及干货等着你。