项目作者: sourcerer-io

项目描述 :
Animate a long screenshot
高级语言: Python
项目地址: git://github.com/sourcerer-io/anishot.git
创建时间: 2018-06-15T16:24:16Z
项目社区:https://github.com/sourcerer-io/anishot

开源协议:MIT License

下载


anishot

Build Status
PyPI
PyPI - Python Version
PyPI - License
PyPI - Wheel

Animates a long screenshot into a GIF. Use it to show off long screenshots in your GitHub README.

clean look

Install

  1. $ pip install anishot

Usage

  1. $ anishot --help
  2. usage: anishot [-h] [--pad PAD] [--maxspeed MAXSPEED] [--stops [STOPS [STOPS ...]]]
  3. [--zoom-steps ZOOM_STEPS] [--start-scale START_SCALE]
  4. [--zoom-to ZOOM_TO] [--shadow-size SHADOW_SIZE]
  5. [--rgb-outline RGB_OUTLINE] [--rgb-background RGB_BACKGROUND]
  6. [--rgb-shadow RGB_SHADOW] [--rgb-window RGB_WINDOW]
  7. input output height
  8. Animates a long screenshot into a GIF
  9. positional arguments:
  10. input Input screenshot image
  11. output Output animated GIF
  12. height Window height
  13. optional arguments:
  14. -h, --help show this help message and exit
  15. --pad PAD Padding on sides
  16. --maxspeed MAXSPEED
  17. Max speed on scroll px/frame
  18. --stops [STOPS [STOPS ...]]
  19. Stops between scrolls, px
  20. --zoom-steps ZOOM_STEPS
  21. Number of steps on initial zoom in
  22. --start-scale START_SCALE
  23. Start scale
  24. --zoom-to ZOOM_TO Point to zoom to
  25. --shadow-size SHADOW_SIZE
  26. Shadow size
  27. --rgb-outline RGB_OUTLINE
  28. Screenshot outline color
  29. --rgb-background RGB_BACKGROUND
  30. Background color
  31. --rgb-shadow RGB_SHADOW
  32. Screenshot shadow color
  33. --rgb-window RGB_WINDOW
  34. Window outline color

The anishot at the top of this README was generated by:
anishot --stops 290 640 940 --zoom-to 150 --start-scale .7 anishot.png anishot.gif 450

You can also experiment with styles. For example, you can go for a retro look:

anishot --stops 290 640 940 --zoom-to 150 --start-scale .7 --pad 50 --shadow-size 5 --rgb-bg #cccccc --rgb-window #666666 anishot.png anishot.gif 450

retro look

Contributing

Contributions are welcome!