|
| 1 | +--- |
| 2 | +subcategory: "Media Processing Service(MPS)" |
| 3 | +layout: "tencentcloud" |
| 4 | +page_title: "TencentCloud: tencentcloud_mps_image_sprite_template" |
| 5 | +sidebar_current: "docs-tencentcloud-resource-mps_image_sprite_template" |
| 6 | +description: |- |
| 7 | + Provides a resource to create a mps image_sprite_template |
| 8 | +--- |
| 9 | + |
| 10 | +# tencentcloud_mps_image_sprite_template |
| 11 | + |
| 12 | +Provides a resource to create a mps image_sprite_template |
| 13 | + |
| 14 | +## Example Usage |
| 15 | + |
| 16 | +```hcl |
| 17 | +resource "tencentcloud_mps_image_sprite_template" "image_sprite_template" { |
| 18 | + column_count = 10 |
| 19 | + fill_type = "stretch" |
| 20 | + format = "jpg" |
| 21 | + height = 143 |
| 22 | + name = "terraform-test" |
| 23 | + resolution_adaptive = "open" |
| 24 | + row_count = 10 |
| 25 | + sample_interval = 10 |
| 26 | + sample_type = "Time" |
| 27 | + width = 182 |
| 28 | +} |
| 29 | +``` |
| 30 | + |
| 31 | +## Argument Reference |
| 32 | + |
| 33 | +The following arguments are supported: |
| 34 | + |
| 35 | +* `column_count` - (Required, Int) The number of columns in the small image in the sprite. |
| 36 | +* `row_count` - (Required, Int) The number of rows in the small image in the sprite. |
| 37 | +* `sample_interval` - (Required, Int) Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds. |
| 38 | +* `sample_type` - (Required, String) Sampling type, optional value:Percent/Time. |
| 39 | +* `comment` - (Optional, String) Template description information, length limit: 256 characters. |
| 40 | +* `fill_type` - (Optional, String) Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.Default value: black. |
| 41 | +* `format` - (Optional, String) Image format, the value can be jpg, png, webp. Default is jpg. |
| 42 | +* `height` - (Optional, Int) The maximum value of the height (or short side) of the small image in the sprite image, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0. |
| 43 | +* `name` - (Optional, String) Image sprite template name, length limit: 64 characters. |
| 44 | +* `resolution_adaptive` - (Optional, String) Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open. |
| 45 | +* `width` - (Optional, Int) The maximum value of the width (or long side) of the small image in the sprite image, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0. |
| 46 | + |
| 47 | +## Attributes Reference |
| 48 | + |
| 49 | +In addition to all arguments above, the following attributes are exported: |
| 50 | + |
| 51 | +* `id` - ID of the resource. |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | +## Import |
| 56 | + |
| 57 | +mps image_sprite_template can be imported using the id, e.g. |
| 58 | + |
| 59 | +``` |
| 60 | +terraform import tencentcloud_mps_image_sprite_template.image_sprite_template image_sprite_template_id |
| 61 | +``` |
| 62 | + |
0 commit comments