Fix SharePoint User Profile Images Rendering Incorrectly with Size L
Question details
Users are encountering an issue where SharePoint user profile images fail to render properly when the size=L parameter is specified in JSON formatting.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Using custom JSON column formatting with userphoto.aspx to display large user profile images in a SharePoint list or library.
- Observed behavior
- Profile images load correctly with size=M or size=S parameters, but render incorrectly or appear broken when set to size=L. However, the same large image URLs still function properly in PnP Search environments.
Ensure you have the exact JSON formatting script on hand and verify if the issue persists across different web browsers or SharePoint environments before making any permanent changes.
Change the Image Size Parameter in JSON Formatting
Since the large image size is currently experiencing rendering issues in custom setups, switching to medium or small sizes can serve as an immediate workaround to restore image visibility.
Navigate to the specific SharePoint list or document library where the custom JSON formatting is applied.
Click on the column header that contains the profile images, select 'Column settings' from the drop-down menu, and choose 'Format this column'.
In the JSON editor panel on the right, locate the userphoto.aspx URL string and change the parameter from size=L to size=M or size=S.
Click the 'Save' button at the bottom of the formatting pane, then refresh the page to confirm that the user profile images are now rendering correctly.

Consult the Microsoft Q&A SharePoint Community
Because this involves specific JSON customization without official Microsoft documentation on the bug, escalating the issue to Microsoft's developer community is the best long-term strategy.
Looking for a seamless office suite? Try WPS Office
While troubleshooting advanced SharePoint JSON formatting requires dedicated developer support, managing your day-to-day documents doesn't have to be complicated. WPS Office provides a free, lightweight, and user-friendly alternative to Microsoft Office for creating, editing, and sharing documents effortlessly.

Frequently Asked Questions
Why do SharePoint profile images not show up in size L?
This issue often stems from undocumented backend changes or bugs in how SharePoint handles the userphoto.aspx endpoint when custom JSON formatting is applied, specifically failing to retrieve or properly scale the large (size=L) resolution images.
Does this JSON formatting error affect PnP Search results?
No, users consistently report that the same large image URLs continue to work properly within PnP Search setups. This indicates the problem is isolated to how the userphoto.aspx URL is processed natively in standard list column JSON formatting.
Where can I find official support for SharePoint JSON customization issues?
Since standard Microsoft consumer support may not cover deep developer-level customizations, it is highly recommended to post your script and issue details on the Microsoft Q&A platform under the SharePoint development tags for expert investigation.




