← 返回命令列表

Linux command

agg 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Convert

agg [recording.cast] [output.gif]

Example

agg --font-size [20] [recording.cast] [output.gif]

Example

agg --speed [2] [recording.cast] [output.gif]

Example

agg --theme [monokai] [recording.cast] [output.gif]

Example

agg --cols [80] --rows [24] [recording.cast] [output.gif]

说明

agg (asciinema gif generator) converts asciinema terminal recordings to animated GIF files. It renders terminal sessions including colors, cursor, and all formatting into a high-quality GIF suitable for documentation or sharing. The tool is written in Rust and provides options for customizing output appearance including themes, fonts, dimensions, and playback speed.

参数

--font-size _size_
Font size in pixels (default: 14)
--font-family _name_
Font family name
--speed _factor_
Playback speed multiplier
--theme _name_
Color theme (asciinema, dracula, monokai, solarized-dark, solarized-light)
--cols _n_
Terminal width in columns
--rows _n_
Terminal height in rows
--fps _n_
Frames per second (default: variable)
--renderer _type_
Renderer: fontdue or resvg
--idle-time-limit _seconds_
Maximum idle time between frames

FAQ

What is the agg command used for?

agg (asciinema gif generator) converts asciinema terminal recordings to animated GIF files. It renders terminal sessions including colors, cursor, and all formatting into a high-quality GIF suitable for documentation or sharing. The tool is written in Rust and provides options for customizing output appearance including themes, fonts, dimensions, and playback speed.

How do I run a basic agg example?

Run `agg [recording.cast] [output.gif]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --font-size _size_ do in agg?

Font size in pixels (default: 14)