⚠️ 这是一个非官方翻译网站,与 ImageMagick Studio LLC 无关。准确信息请参阅原文(https://imagemagick.org/animate/)

animate

使用示例 • 选项一览

使用 animate 程序可以在任意 X 服务器上将图像序列以动画形式播放。关于如何组织 animate 命令,请参阅命令行处理,或查看下方的命令使用示例。

使用示例

为展示 animate 命令的实用性与易用性,这里列举几个示例。首先,让我们以动画形式播放一个 GIF 格式的图像序列:

magick animate movie.gif

要以动画形式播放某个目录中的 JPEG 图像,请使用:

magick animate *.jpg

更多 animate 的使用示例可在 Examples of ImageMagick Usage 中找到。

选项一览

animate 命令可识别以下选项。点击某个选项可查看其工作方式的详细说明。

选项 说明
-alpha 对 alpha 通道执行 on, activate, off, deactivate, set, opaque, copy, transparent, extract, background, shape
-antialias 去除像素混叠
-authenticate value 使用此密码解密图像
-backdrop 将图像居中显示在背景之上
-background color 背景色
-border geometry 用彩色边框环绕图像
-bordercolor color 边框颜色
-channel type 将选项应用于选定的图像通道
-clip 沿 8BIM 配置文件中的第一条路径裁剪
-clip-path id 沿 8BIM 配置文件中的命名路径裁剪
-coalesce 合并图像序列
-colormap type Shared 或 Private
-colors value 图像中期望的色彩数量
-colorspace type 设置图像的色彩空间
-comment string 用注释为图像添加批注
-compress type 图像压缩类型
-contrast 增强或降低图像对比度
-crop geometry 裁剪图像的期望尺寸与位置
-debug events 以动画形式显示大量调试信息
-decipher filename 将加密像素转换为明文
-define format:option 定义一个或多个图像格式选项
-delay centiseconds 暂停后以动画形式播放下一帧图像
-density geometry 图像的水平与垂直密度
-depth value 图像位深度
-despeckle 降低图像中的斑点噪声
-display server 从此 X 服务器获取图像或字体
-dispose method 图层处置方式
-dither method 对图像应用误差扩散
-edge radius 应用滤镜以检测图像中的边缘
-endian type 图像的字节序(MSB 或 LSB)
-enhance 应用数字滤镜以修复噪声较多的图像
-extract geometry 从图像中提取区域
-filter type 调整图像尺寸时使用此滤镜
-flatten 将图像序列合并为一张
-flip 垂直方向翻转图像
-flop 水平方向翻转图像
-frame geometry 用装饰性边框环绕图像
-gamma value 伽马校正的程度
-geometry geometry 图像的期望尺寸或位置
-gravity geometry 背景的水平与垂直放置位置
-help 打印程序选项
-identify 识别图像的格式与特征
-immutable type 禁止编辑图像
-interlace type 图像隔行扫描方案的类型
-interpolate method 像素色彩插值方法
-label name 为图像分配标签
-limit type value 像素缓存资源上限
-log format 调试信息的格式
-map filename 将图像色彩转换为与此色彩集匹配
-mattecolor color 边框颜色
-monitor 监视进度
-monochrome 将图像转换为黑白
-negate 将每个像素替换为其补色
-page geometry 图像画布的尺寸与位置(设置)
-profile filename 添加、删除或应用图像配置文件
-quantize colorspace 在此色彩空间中减少图像色彩
-quiet 抑制所有警告消息
-raise value 提亮/压暗图像边缘以营造立体效果
-regard-warnings 重视警告消息。
-remote command 在远程 animate 进程中执行命令
-resample geometry 更改图像的分辨率
-resize geometry 调整图像尺寸
-respect-parentheses 设置在括号边界内持续生效。
-roll geometry 垂直或水平滚动图像
-rotate degrees 对图像应用 Paeth 旋转
-sample geometry 通过像素采样缩放图像
-sampling-factor geometry 水平与垂直采样系数
-scene value 图像场景编号
-segment values 对图像进行分段
-seed value 为新的伪随机数序列设置种子
-set attribute value 设置图像属性
-sharpen geometry 锐化图像
-size geometry 图像的宽度与高度
-strip 去除图像的所有配置文件与注释
-thumbnail geometry 创建图像的缩略图
-transparent-color color 透明色
-trim 修剪图像边缘
-update seconds 检测图像文件被修改并重新播放动画
-verbose 打印图像的详细信息
-version 打印版本信息
-virtual-pixel method 访问图像边界外像素的方法
-visual 使用此视觉类型以动画形式播放图像
-window id 将图像以动画形式播放到此窗口的背景
-window-group id 当此窗口 ID 被销毁时退出程序