This document shows you how to create a template in the VOD console to process images in real time. The processing is based on URLs, which allows quick image generation.
Note:The original image cannot be larger than 32 MB. Its dimensions cannot exceed 30,000 pixels and its resolution cannot exceed 250 million pixels. The dimensions of the output image cannot exceed 9,999 pixels.
VOD processes images based on URLs.
There are two processing types: scaling and cropping.
Type | Operation |
---|---|
Scaling | Width: Specified; height: Auto-scaled |
Height: Specified; width: Auto-scaled | |
Long side: Specified; short side: Auto-scaled | |
Short side: Specified; long side: Auto-scaled | |
Width: Specified; height: Specified | |
Cropping | Cropping to circle, with the radius specified |
Cropping to rectangle, with height and width specified |
Width: Specified; height: Auto-scaled
Template ID: 13290; width: 700; output format: PNG.
The URL of the processed image is: https://1500012191.vod2.myqcloud.com/6caaa776vodcq1500012191/0f9d472c387702299328320141/Cov1ATJ3AYYA.jpg!13290.PNG
Result:
Height: Specified; width: Auto-scaled
Template ID: 13291; height: 700; output format: PNG
The URL of the processed image is: http://1500012191.vod2.myqcloud.com/6caaa776vodcq1500012191/0f9d472c387702299328320141/Cov1ATJ3AYYA.jpg!13291.PNG
Result:
Long side: Specified; short side: Auto-scaled
Template ID: 13292; long side: 300; output format: PNG
The URL of the processed image is: https://1500012191.vod2.myqcloud.com/6caaa776vodcq1500012191/0f9d472c387702299328320141/Cov1ATJ3AYYA.jpg!13292.PNG
Result:
Short side: Specified; long side: Auto-scaled
Template ID: 13293; short side: 300; output format: PNG
The URL of the processed image is: https://1500012191.vod2.myqcloud.com/6caaa776vodcq1500012191/0f9d472c387702299328320141/Cov1ATJ3AYYA.jpg!13293.PNG
Result:
Width: Specified; height: Specified
Template ID: 13294; height: 300; width: 300; output format: PNG
The URL of the processed image is: https://1500012191.vod2.myqcloud.com/6caaa776vodcq1500012191/0f9d472c387702299328320141/Cov1ATJ3AYYA.jpg!13294.PNG
Result:
Cropping to circle
Template ID: 13295; radius: 300; output format: PNG
The URL of the processed image is: http://1500012191.vod2.myqcloud.com/6caaa776vodcq1500012191/182b0f2a387702299461251102/EOy4fI1V8gQA.jpg!13295.PNG
Result:
Cropping to rectangle
Template ID: 13296; output height: 300; output width: 300; output format: PNG
The URL of the processed image is: http://1500012191.vod2.myqcloud.com/6caaa776vodcq1500012191/23c473bb387702299461744409/HVSbBfQq3JgA.jpg!13296.PNG
Result:
Was this page helpful?