Get photo/ API adds white border around photo

Quinn McHugh 1 Reputation point Microsoft Employee
2021-01-22T18:33:45.737+00:00

Calls to the get group photo api are adding white borders around images. See below screenshot for effect:
59657-teams-dark-mode.png

This is very noticeable when the hosting application is set to dark mode, like Teams is in this case. The API being used is:

url: `https://graph.microsoft.com/v1.0/groups/${classId}/photos/48x48/$value`,  

This is believed to be a graph API issue because the base64 image returned contains the white border, and this is in the case of an auto-generated image for the group. The issue also appears for user-uploaded images like the cardinal below:

59697-cardinal-white-border.png
59638-bw.png

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,716 questions
{count} votes