[Webinar] Live demos, interactions, and user Q&A with Zoho Writer product experts. Book your seat

Skip to main content

Get image info

Purpose

To get the details of all images inserted into the document.

Syntax

WriterClient.dispatch("imageInfo", {}).then(function(response){console.log(response)});

Sample data

CopiedWriterClient.dispatch("imageInfo", {}).then(function(response){console.log(response)}); 

Sample Response

Copied{
    "message": "Object Fetched ",
    "data": {
        "content": {
            "data": {
                "result": 1,
                "response": [
                    {
                        "src": "https://writer.zoho.com/writer/image.do?imgurl=r-uc58a208da52c3e354036a05788723689f34b-6d7bc15ba78740fc9b35a46dd9fab2b0yeq3907ullfx&rid=uc58a208da52c3e354036a05788723689f34b",
                        "id": "58371118",
                        "width": 500,
                        "height": 273.7226277372263,
                        "alttext": "kid playing",
                        "title": "sample image"
                    },
                    {
                        "src": "https://writer.zoho.com/writer/image.do?imgurl=r-uc58a208da52c3e354036a05788723689f34b-6d7bc15ba78740fc9b35a46dd9fab2b0ctam0abrlddi&rid=uc58a208da52c3e354036a05788723689f34b",
                        "id": "20427980",
                        "width": 500,
                        "height": 273.7226277372263,
                        "alttext": "dog",
                        "title": "pet"
                    }
                ]
            }
        }
    }
}

Show full

Show less