4,590 questions
You could use JSON column formatting to hide the link to a document with an image, below is my sample code fo you:
{
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"elmType": "a",
"attributes": {
"href": "@currentField",
"target": "_blank"
},
"children": [
{
"elmType": "img",
"style": {
"width": "150px"
},
"attributes": {
"src": "/SiteAssets/test.png"
}
}
]
}
Note :change the src attribute to your iamge url.
My test result: