以前一直用第三方图片存储,都是用第三方接口把用户上传的图片压缩到一定的分辨率和格式,再保存。
现在用自己的服务器处理图片、压缩,大家一般推荐用什么库好?
现在用自己的服务器处理图片、压缩,大家一般推荐用什么库好?
7 条回复 • 2016-12-26 12:37:23 +08:00
|
1
hansnow 2016 年 12 月 26 日
|
|
2
lostab 2016 年 12 月 26 日 via Android
pillow 吧
|
|
3
eriale 2016 年 12 月 26 日
thumbor
|
|
4
rogerchen 2016 年 12 月 26 日
pillow 很好,但是不要和 server 布置在一台物理机上。 pillow 在处理大图片的时候会调用外部库并行处理,很吃 CPU ,如果和 server 在一台物理机上会严重影响吞吐的。
|
|
5
lishunan246 2016 年 12 月 26 日 via Android
OpenCV 也可以
|
|
6
rogwan OP |
|
7
rogwan OP 要锁=压缩
|
推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide