制作长截图的动画

anishot的Python项目详细描述


茴香

将长截图动画化为gif。使用它来展示github自述文件中的长截图。

clean look

安装

$ 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

retro look

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java数据结构和算法实现字典   java RecyclerView执行项目单击   php解析数据组织时出错。json。JSONException:值<!java类型的DOCTYPE。无法将lang.String转换为JSONObject(Android)   java无法修复ArrayIndexOutOfBoundsException   是否可以将java转换为java。util。Date()到int?   java J2ME本机Mp3播放器,用于播放大于1.5 MB的Mp3文件   java如何在JAXWS web服务上抛出自定义错误?   在Graphstream中检索鼠标单击的图形   java Servlet不显示来自数据库的图像   使用Jackson框架的@RequestBody注释的java Spring引导ObjectMapper   web服务如何查看为Java程序生成的SOAP请求和响应   java打印出三维数组并得到组合的整数值   使用ExtentReports打印Arraylist时发生java错误   java如何在历史日期运行oozie?   java LIBGDX:SpriteBatch draw未在iOS上绘制   java如何将两个具有一些公共实体的不同JSON转换为pojo?   java JPA/Hibernate试图在具有复合Id(和双重属性)的实体中存储太多参数   java如何使用@Resource注册bean