推荐学习书目
› 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
crny520
V2EX  ›  Python

手头有个项目需要给不同的图片加不同的水印生成不同的尺寸的图片,想了解Python处理的能力.

  •  
  •   crny520 · Aug 9, 2013 · 4104 views
    This topic created in 4795 days ago, the information mentioned may be changed or developed.
    因为后台是用PHP做的,我计划是不是把文件系统用Python独立做成表单式,接收处理.想请问Python处理图片能力和速度比PHP强吗?
    1.目前使用UPYUN生成不同尺寸的图片了.
    2.考虑生成水印的图片是放在UPYUN上面,还是用七牛做CDN,还是用阿里OSS.(每张图片我都有在阿里云服务器备份一份了,如果用UPYUN就直接做一张较大尺寸水印的图片,其他都需要生成不同尺寸)

    请求大家的想法,及如果推荐使用Python,有没有相关的思路,和技术分享,谢谢.
    4 replies  •  1970-01-01 08:00:00 +08:00
    kasp
        1
    kasp  
       Aug 9, 2013
    我的用imagick,直接使用系统命令。。。
    felix021
        2
    felix021  
       Aug 9, 2013
    Python用PIL就好了,比PHP的写起来要容易多了。
    panzhc
        3
    panzhc  
       Aug 10, 2013
    图片量大的话imagick效率比较高
    mengzhuo
        4
    mengzhuo  
       Aug 12, 2013
    PIL
    处理400M TIF格式生成3000HxW的Jpeg,需要500M左右的内存,处理时间(单线程/3.0GHz)在20秒左右。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   848 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:36 · PVG 04:36 · LAX 13:36 · JFK 16:36
    ♥ Do have faith in what you're doing.