ImageManager
Image Tools
Create image with new format
This function converts an image to a new file format.
Important:
When you disable the WebServer role, the system disables this function.
get/ImageManager/convert_file
Query parameters
image_filestring required
Example:images/myimage.jpg
The image file to convert, relative to the cPanel account's /home directory.
typestring required
Example:png
The format to which to convert the images.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "convert_file",
"module": "ImageManager",
"result": {
"data": {
"converted_file": "/home/cptest1/images/myimage.png"
},
"status": 1
}
}