I have created a SharePoint list. Within this list I also added the column "Hyperlink or Picture". In the field settings I selected to format the url as a picture. This works fine.
However, now I want to resize the picture to a certain size. I have read as a possibility that I could at the script editor webpart (see: Sharepoint list view with Thumbnail image). The script editor is unfortunately not available to me.
Column-formatting (see: column formatting to customize SharePoint) is available to me. Now I was wondering if I cannot use that to format my column? Since what I want to do is change the style... Therefor I came up with the following JSON.
{
"elmType": "img",
"txtContent": "@currentField",
"style": {
"width": "50px",
"height": "50px",
}
}
Unfortunatly this does not work. Is this because my JSON is incorrect? Or is this not possible to do at all using the column formatting?