Animated image template parameters

更新时间:
复制 MD 格式

This topic describes a sample Intelligent Media Services (IMS) animated image template and the template parameters.

Parameter

Data type

Required

Description

Example

Format

string

Yes

The format of the animated image. Valid values: gif and webp.

gif

Width

integer

No

The width of the output animated image. Valid values: [128,4096].

1024

Height

integer

No

The height of the output animated image. Valid values: [128,4096].

720

Fps

integer

No

The frame rate. Valid values: [1,60].

15

ScanMode

string

No

The scan mode. Default value: progressive. Valid values:

  • interlaced

  • progressive

progressive

LongShortMode

boolean

No

Specifies whether to enable the auto-rotate screen feature. Default value: true. Valid values:

  • true: The auto-rotate screen feature is enabled.

  • false: The auto-rotate screen feature disabled.

Note

If the auto-rotate screen feature is enabled, the width of the output animated image corresponds to the long side of the input animated image, which is the height of the input animated image in portrait mode. The height of the output animated image corresponds to the short side of the input animated image, which is the width of the input animated image in portrait mode.

false

TimeSpan

JSON

No

The timespan parameters.

For more information, see TimeSpan.

TimeSpan

Parameter

Data type

Required

Description

Example

Seek

string

Yes

The start time of the animated image.

  • Format: hh:mm:ss[.SSS] or sssss[.SSS]

  • Valid values: [00:00:00.000,23:59:59.999] or [0.000,86399.999]

01:59:59.999

Duration

string

No

The duration of the animated image.

  • Format: hh:mm:ss[.SSS] or sssss[.SSS]

  • Valid values: [00:00:00.000,23:59:59.999] or [0.000,86399.999]

01:59:59.999

End

string

No

The length of the end part of the input animated image to be cropped out. If you specify this parameter, the Duration parameter becomes invalid.

  • Format: hh:mm:ss[.SSS] or sssss[.SSS]

  • Valid values: [00:00:00.000,23:59:59.999] or [0.000,86399.999]

01:59:59.999

Sample template

{
  "TimeSpan": {
    "Duration": "12",
    "Seek": "6"
  },
  "Format": "webp",
  "ScanMode": "progressive",
  "Fps": 25,
  "LongShortMode": true
}