Forum Discussion
RMDUser1
Jun 10, 2025Copper Contributor
JSON formatting affecting Tile view when pic is modified
Hello!
I am hoping someone can help with a random annoying JSON formatting issue I'm having!
I am using a SharePoint list with a Tile view. It's JSON formatted to fit the file thumbnail on the tile - all good so far (I believe anyway, JSON is not something I am overly familiar with!).
However, I've noticed when I modify the photo, the thumbnail ends up tiny on the tile and no amount of refreshing the screen changes it. Why is this? How can I sort it?
See below, the pic on the left is the standard view size when the file is uploaded. The file on the right is post-modification (when it used to be the same size as the left picture and all I did was change it from a colour photo to B&W).
This is my JSON formatting on the view itself:
{
"elmType": "div",
"attributes": {
"class": "sp-card-previewColumnContainer"
},
"children": [
{
"elmType": "div",
"attributes": {
"class": "sp-card-imageContainer"
},
"style": {
"max-height": "260px",
"display": "flex",
"object-fit": "contain",
"justify-content": "center",
"align-items": "center"
},
"children": [
{
"elmType": "filepreview",
"attributes": {
"src": "@thumbnail.small"
},
"style": {
"max-height": "100%",
"max-width": "100%",
"display": "inline-block",
"object-fit": "contain"
},
"filePreviewProps": {
"fileTypeIconClass": "sp-fileTypeIcon-cardDesigner",
"brandTypeIconClass": "sp-brandTypeIcon-cardDesigner"
}
}
]
}
]
},
1 Reply
Sort By
- RMDUser1Copper Contributor
EDIT:
I have now realised it is appearing tiny as the picture is being checked out to the user who edited and saved it.
So now my question really is - how can I auto check in an edited photo? I'm almost certain this is newly introduced feature by MS as this was working fine a few weeks ago. Something modified was instantly visible to all users.