v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
ImageManager
Image Tools

Return image dimensions

This function returns the dimensions of the image file that you specify.

Important:

When you disable the WebServer role, the system disables this function.

get/ImageManager/get_dimensions

Query parameters

image_filestring required
Example:image/myimage.jpg

The path to the file to measure.

Note:

Use the absolute filepath or a path relative to the user's home directory.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "get_dimensions",
  "module": "ImageManager",
  "result": {
    "data": {
      "height": 300,
      "width": 261
    },
    "status": 1
  }
}