制作长截图的动画
anishot的Python项目详细描述
茴香
将长截图动画化为gif。使用它来展示github自述文件中的长截图。
安装
$ pip install anishot
用法
$ anishot
Usage:
anishot.__main__:
--h: Window height
(default: '0')
(an integer)
--inp: Input screenshot image
--maxspeed: Max speed on scroll px/frame
(default: '200')
(an integer)
--out: Output antimated GIF
--pad: Padding on sides
(default: '0')
(an integer)
--rgb_bg: Background color
(default: '#ffffff')
--rgb_outline: Screenshot outline color
(default: '#e1e4e8')
--rgb_shadow: Screenshot shadow color
(default: '#999999')
--rgb_window: Window outline color
(default: '#e1e4e8')
--shadow_size: Shadow size
(default: '0')
(an integer)
--start_scale: Start scale
(default: '0.5')
(a number)
--stops: List of stops for scrolling
(default: '')
(a comma separated list)
--zoom_steps: Number of steps on initial zoom in
(default: '7')
(an integer)
--zoom_to: Point to zoom to
(default: '0')
(an integer)
自述文件顶部的anishot是由以下生成的:
anishot --inp=anishot.png --out=anishot.gif --h=450 --stops=290,640,940 --zoom_to=150 --start_scale=.7
你也可以尝试风格。例如,您可以选择复古外观:
anishot --inp=anishot.png --out=anishot.gif --h=450 --stops=290,640,940 --zoom_to=150 --start_scale=.7 --pad=50 --shadow_size=5 --rgb_bg=#cccccc --rgb_window=#666666