URLs
GET api/v1/ui/image.xml (or .json)
Renders resized image HTML for a local or remote image URL with support for server-side resizing and different scale modes.
请求参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
url |
string |
Url |
是 |
||
maxHeight |
int |
Maximum height of resulting image |
是 |
100 |
|
maxWidth |
int |
Maximum width of resulting image |
是 |
100 |
|
resizeMethod |
string |
Method to resize. ScaleDown scales the entire image to fit within the boundaries. ZoomAndCrop scales the image as small as possible while still filling the entire width/height boundaries and retaining aspect ratio, resulting in cropping of either the X or Y axis as necessary. |
否 |
ScaleDown |
ScaleDown, ZoomAndCrop |
scaleFactor |
double |
Scale factor to use for high-DPI output |
否 |
1 |
|
outputIsPersisted |
bool |
When the output is not persisted, direct links to CFS file URLs can be rendered. Otherwise, the generic CFS URL is rendered which results in a redirect. |
否 |
false |