Forum Discussion
Set-UserPhoto size of picture?
When we upload larger picture, Exchange can automatically resize these photos for use in different products as needed. I haven't found the official recommendation for the particular size, but as mentioned in the below Technet article, it can can automatically resize in three different photo sizes and resolutions:
64 pixels by 64 pixels, the size used for the Active Directory thumbnailPhoto attribute. If you upload a photo to Exchange Server, Exchange will automatically create a 64 pixel by 64 pixel version of that photo and update the user's thumbnailPhoto attribute. Note, however, that the reverse is not true: if you manually update the thumbnailPhoto attribute in Active Directory the photo in the user's Exchange mailbox will not automatically be updated.
96 pixels by 96 pixels, for use in Microsoft Outlook 2013 Web App, Microsoft Outlook 2013, Skype for Business Web App, and Skype for Business.
648 pixels by 648 pixels for use in Skype for Business and Skype for Business Web App Skype for Business Web App.
Article- https://technet.microsoft.com/en-us/library/jj688150.aspx
Thank you Vishal,
The article doesn't mention 240x240 as a resolution being used anywhere, then it seems strange that it's the resolution you get when fetching from Exchange online and the filesize is approximately 7kb.
So, if you don't make use of Skype then I see no real improvement of using Set-UserPhoto and the manual labour of using powershell scripts. Then we can just go with the ADsync of the thumbnail attribute resulting in 10 kb images, which is what you get anyway?
Or am I missing something?
/Daniel
- Vishal KalalMar 29, 2017Brass Contributor
I believe thats true. If we have to use for S4B or any other service where it required higher resolution, it will help.
- VasilMichevMar 29, 2017MVP
Photos in O365 are still a mess, but in general what Vishal said is true. The available sizes for Exchange are listed here: https://msdn.microsoft.com/en-us/library/office/jj191419(v=exchg.150).aspx
You can get a soecific size via:
https://outlook.office365.com/ews/Exchange.asmx/s/GetUserPhoto?email=user@domain.com&size=HR240x240
Which is not guarantee that you will have the same sizes in other workloads. You can see (most) available sizes from SPO's MySites store: https://tenant-my.sharepoint.com/User%20Photos/Forms/Thumbnails.aspx?id=%2FUser%20Photos%2FProfile%20Pictures
- Daniel MercouriosApr 03, 2017Copper Contributor
Thanks Vasil for confirming my experience that photos are a mess in O365.
I will soon receive feedback from the customer regarding the resolution and quality of the photos that I uploaded through powershell and try to explain all the ifs and buts and caveats of photos in O365.