生产器:qimage
插件信息
title: Qt QImage
media types:
Video
description: 使用 Qt QImage 将静态图形生成视频
version: 3
creator: Charles Yates
license: GPLv2
说明
QImage 内置缩放功能。它会把最初渲染出的图像重新缩放为消费器所请求的尺寸。因此,如果被这样要求,它会失去宽高比,需要由消费器请求合适的宽度和高度以保持图像的宽高比。
参数
resource
title: 文件
description:
可由 Qt 载入的图形文件名。如果文件名中含 "%",则会用 sprintf 基于计数器生成文件名,从而实现多文件/翻页动画(flipbook)。当数字不连续超过 100 时,文件序列结束。如果文件序列的起始不在计数 100 之内,你可以像查询字符串参数那样传入 begin 属性,例如:anim-%04d.png?begin=1000。如果文件名包含 "/.all.",则在其后加上扩展名,可从目录中加载所有具有该扩展名的图片。如果文件名包含字符串 "<svg",那么 qimage 会尝试把文件名当作内联 SVG XML 来加载,这对 melt 命令很方便。
type: string
readonly: no
required: yes
widget: fileopen
begin
title: 起始编号
description:
使用图像序列时,此项设置起始编号。
type: integer
readonly: no
required: no
minimum: 0
widget: spinner
ttl
title: 存活时间
description:
在文件序列中每张图片重复的时长(以帧计)。
type: integer
readonly: no
required: no
minimum: 0
default: 25
widget: spinner
meta.media.width
title: 实际宽度
description:
渲染图像的原始(未缩放)宽度。
type: integer
readonly: yes
required: no
meta.media.height
title: 实际高度
description:
渲染图像的原始(未缩放)高度。
type: integer
readonly: yes
required: no
width
title: 宽度
description:
最近一次请求的缩放后图像宽度。
type: integer
readonly: yes
required: no
height
title: 高度
description:
最近一次请求的缩放后图像高度。
type: integer
readonly: yes
required: no
force_reload
description:
重新加载文件,而不使用其缓存图像。此属性在被设为 1 并处理完成后会自动重置自身。
type: integer
readonly: no
required: no
minimum: 0
maximum: 1
disable_exif
title: 禁用自动旋转
type: boolean
readonly: no
required: no
default: 0
widget: checkbox
force_aspect_ratio
title: 采样宽高比
description:
可选择性地覆盖(误)检测到的宽高比
type: float
readonly: no
required: no
autolength
title: 自动计算长度
description:
是否自动计算图像序列的长度和出点(out point)。
type: boolean
readonly: no
required: no
default: 0
widget: checkbox