Python常用三方模块——Pillow

在Python2.7之前呢,Pillow还叫PIL,是Python里图像处理标准库了

Mac中Pillow的安装地址:https://pillow.readthedocs.io/en/stable/installation/basic-installation.htmlsshhttps://pillow.readthedocs.io/en/stable/installation/basic-installation.html

安装完之后就能正常使用Pillow模块了,第一次使用的时候真的给我的感觉就是方便、快捷

首先是图片的缩放:

还有图片的模糊功能也十分好用

PIL的ImageDraw提供了一系列绘图方法,让我们可以直接绘图。比如要生成字母验证码图片:

相关推荐
dingdingfish3 小时前
Bash学习 - 第3章:Basic Shell Features,第5节:Shell Expansions
开发语言·学习·bash
Olamyh3 小时前
【 超越 ReAct:手搓 Plan-and-Execute (Planner) Agent】
python·ai
rainbow68893 小时前
C++开源库dxflib解析DXF文件实战
开发语言·c++·开源
deepxuan3 小时前
Day7--python
开发语言·python
曲幽4 小时前
FastAPI不止于API:手把手教你用Jinja2打造动态Web页面
python·fastapi·backend·jinja2·full stack·template engine·web development
禹凕4 小时前
Python编程——进阶知识(多线程)
开发语言·爬虫·python
Ulyanov4 小时前
基于Pymunk物理引擎的2D坦克对战游戏开发
python·游戏·pygame·pymunk
铉铉这波能秀4 小时前
LeetCode Hot100数据结构背景知识之字典(Dictionary)Python2026新版
数据结构·python·算法·leetcode·字典·dictionary
蜡笔小马4 小时前
10.Boost.Geometry R-tree 空间索引详解
开发语言·c++·算法·r-tree
IOsetting4 小时前
金山云主机添加开机路由
运维·服务器·开发语言·网络·php