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

如何给 gif 图片加水印?

  •  
  •   makeitall · Oct 18, 2016 · 5342 views
    This topic created in 3507 days ago, the information mentioned may be changed or developed.
    如题。。。如何给 gif 图片加水印, pillow 试了一下,发现加了之后图片不会动了。也可能是我的方法不对。谢谢大神。
    15 replies    2016-10-21 23:01:12 +08:00
    designer
        1
    designer  
       Oct 18, 2016 via iPad   ❤️ 1
    Photoshop 目前对多个 GIF 的组合处理是最棒的。
    designer
        2
    designer  
       Oct 18, 2016 via iPhone
    没看到是 Python 节点
    makeitall
        3
    makeitall  
    OP
       Oct 19, 2016
    @designer 是我没描述清楚。。。
    xiaozi
        4
    xiaozi  
       Oct 19, 2016   ❤️ 1
    给每一帧都加上水印,然后再合并成 gif 的;这里有 php 版本的, python 的可以照着这个写 http://type.so/php/gif-add-watermark-with-imagick.html
    txlty
        5
    txlty  
       Oct 19, 2016   ❤️ 1
    同写过 php 的。
    把动画逐帧拆开,比如 100 帧的 gif 动画,拆开就是 100 个 gif 文件。然后批量加水印,最后拼回 gif 。

    拆 和 拼 这个操作,没有内置函数。用的第三方的 gifdecoder.class.php 和 gifencoder.class.php 。
    ETiV
        6
    ETiV  
       Oct 19, 2016   ❤️ 1
    工具: ImageMagick
    Google : imagemagick add watermark to animated gif
    benmao
        7
    benmao  
       Oct 19, 2016 via Android
    好繁琐 干嘛要加水印
    xshwy
        8
    xshwy  
       Oct 19, 2016 via iPhone   ❤️ 1
    ffmpeg
    yao978318542
        9
    yao978318542  
       Oct 19, 2016
    你不会是 UC 的吧!
    makeitall
        10
    makeitall  
    OP
       Oct 19, 2016
    @xshwy 有毛边怎么办?有的 gif 添加水印后右边有一竖条不停闪烁。
    makeitall
        11
    makeitall  
    OP
       Oct 19, 2016
    @xshwy 应该是版本问题,新版本已经修复了这个问题,但是我用的 Ubuntu 版本太低,不提供最新版本。再次表示感谢。
    0x5010
        12
    0x5010  
       Oct 19, 2016   ❤️ 1
    python imageio
    seek save 成每一帧 加水印后 mimsave 成 gif
    makeitall
        13
    makeitall  
    OP
       Oct 20, 2016
    @xshwy ffmpeg 输出质量不高怎么办?
    makeitall
        14
    makeitall  
    OP
       Oct 20, 2016
    @ETiV 谢谢,非常感谢
    mingyun
        15
    mingyun  
       Oct 21, 2016
    @xiaozi 赞一个
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5352 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 72ms · UTC 07:44 · PVG 15:44 · LAX 00:44 · JFK 03:44
    ♥ Do have faith in what you're doing.