Get photo/ API adds white border around photo
Quinn McHugh
1
Reputation point Microsoft Employee
Calls to the get group photo api are adding white borders around images. See below screenshot for effect:
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: