项目作者: davecom

项目描述 :
Make an animated GIF that dissolves from one image to another using Python's Pillow.
高级语言: Python
项目地址: git://github.com/davecom/dissolve.git
创建时间: 2020-05-31T05:41:24Z
项目社区:https://github.com/davecom/dissolve

开源协议:Apache License 2.0

下载


dissolve

Make an animated GIF that dissolves from one image to another using Python’s Pillow.

Summary

This example program shows the basic usage of the Python argparse module and the third-party Pillow library. In particular, modifying images at the pixel level and creating animated GIFs is demonstrated.

Requirements

This program was tested on Python 3.7, and should work on newer versions. You must have the Pillow library installed. For example, pip3 install pillow. It was tested with Pillow 7.1.2.

Running

  1. python3 dissolve.py -h
  2. usage: dissolve [-h] source destination name
  3. positional arguments:
  4. source The image to dissolve from.
  5. destination The image to dissolve to.
  6. name The name for the animated GIF file.

Example

  1. python3 dissolve.py example1.jpeg example2.jpeg result.gif

result.gif

License

Licensed under the Apache License, version 2.0