This function converts an image to a new file format.
Important:
When you disable the WebServer role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ ImageManager \ convert_file \ image_file='images/myimage.jpg' \ type='png'
{- "apiversion": 3,
- "func": "convert_file",
- "module": "ImageManager",
- "result": {
- "data": {
- "converted_file": "/home/cptest1/images/myimage.png"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}