Image Alt Text Access

Hi community,
I was trying to get the alt text of images inside a canvas formulaically, unfortunately there is no access to that property (I made sure they had an alt text to begin with).
So I tried to use the ._Merge() (as shown in the hidden function ) to breakdown the canvas object in a JSON like format (see below). Even though many properties surfaced, the alt text is still incognito.
Any ideas on how to get the alt text? (I’m not interested in a workaround with text columns alongside images, I was interested in the actual alt text)

Thanks

{
  "type": "slate",
  "root": {
    "children": [
      {
        "type": "ColumnGroup",
        "children": [
          {
            "type": "Column",
            "id": "ec-ZLLN20e3GR",
            "children": [
              {
                "alignment": "Left",
                "children": [
                  {
                    "text": "Image 1"
                  }
                ],
                "id": "cl-jzbFV3uwG_",
                "style": "H2",
                "type": "Line"
              },
              {
                "alignment": "Left",
                "children": [
                  {
                    "text": ""
                  },
                  {
                    "children": [
                      {
                        "text": ""
                      }
                    ],
                    "id": "ci-caDP5WKp-a",
                    "type": "InlineCollaborativeObject"
                  },
                  {
                    "text": " "
                  }
                ],
                "id": "cl-grid-n_eqTICFgv::i-N4H1wDBK1E::c-1e0DF001-S-0",
                "lineLevel": 0,
                "style": "Paragraph",
                "type": "Line"
              }
            ]
          },
          {
            "type": "Column",
            "id": "ec-K2FU6MUZn4",
            "children": [
              {
                "alignment": "Left",
                "children": [
                  {
                    "text": "Image 2"
                  }
                ],
                "id": "cl-z5DnM4VhJ5",
                "style": "H2",
                "type": "Line"
              },
              {
                "alignment": "Left",
                "children": [
                  {
                    "text": ""
                  },
                  {
                    "children": [
                      {
                        "text": ""
                      }
                    ],
                    "id": "ci-PTULvxxF0G",
                    "type": "InlineCollaborativeObject"
                  },
                  {
                    "text": ""
                  }
                ],
                "id": "cl-FJKJHtKAhj",
                "lineLevel": 0,
                "style": "Paragraph",
                "type": "Line"
              }
            ]
          }
        ],
        "id": "ecg-CZfReeH_fv",
        "stopPoints": [
          6,
          12
        ]
      },
      {
        "alignment": "Left",
        "children": [
          {
            "text": ""
          }
        ],
        "id": "cl--RRyEjmM9w",
        "lineLevel": 0,
        "style": "Paragraph",
        "type": "Line"
      },
      {
        "alignment": "Left",
        "children": [
          {
            "text": ""
          }
        ],
        "id": "cl-hQKGNrjfbz",
        "lineLevel": 0,
        "style": "Paragraph",
        "type": "Line"
      }
    ],
    "normalizationOpsQueue": []
  }
}

Hey there, thanks so much for reaching out with this request! We don’t currently have a way to access alt text for images, but I wanted to confirm that I’ve added your idea to our feature request tracker which our team regularly reviews. Should this be built, our team will be sure to let you know!

Have a wonderful day :sunny:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.