This function converts an image to a new file format.
Important:
When you disable the WebServer role, the system disables this function.
image required | string The image file to convert, relative to the cPanel account's Example: |
type required | string The format to which to convert the images. Example: |
HTTP Request was successful.
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 --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
}
}