This function returns the dimensions of the image file that you specify.
Important:
When you disable the WebServer role, the system disables this function.
image_file required | string The path to the file to measure. Note: Use the absolute filepath or a path relative to the user's home directory. Example: image_file=image/myimage.jpg |
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
uapi --user=username ImageManager get_dimensions image_file='image/myimage.jpg'
{- "apiversion": 3,
- "func": "get_dimensions",
- "module": "ImageManager",
- "result": {
- "data": {
- "height": 300,
- "width": 261
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}