This function returns the dimensions of the image file that you specify.
Important:
When you disable the WebServer role, the system disables this function.
uapi --output=jsonpretty \ --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
}
}