Set-UserPhoto size of picture?

%3CLINGO-SUB%20id%3D%22lingo-sub-57732%22%20slang%3D%22en-US%22%3ESet-UserPhoto%20size%20of%20picture%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57732%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Community!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20been%20trying%20to%20read%20up%20on%20the%20subject%20regarding%20user%20thumbnail%20photos%20in%20Office365%20but%20I'd%20like%20to%20hear%20the%20%22final%22%20version%20from%20Microsoft%20about%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20customer%20that%20wants%20to%20upload%20images%20that%20are%20bigger%20in%20size%20than%20what%20AD%20on-premise%20support(100kb)%20and%20Azure%20AD%20support(10kb)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20what%20I've%20heard%20Exchange%20Online%20can%20be%20the%20one%20holding%20the%20profile%20pic%20of%20up%20to%20500%20kb%20and%20648x648%20resolution%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I'm%20trying%20this%20out%20like%20this%3A%3C%2FP%3E%3CP%3ENew-PSSession%20-ConfigurationName%20Microsoft.Exchange%20-ConnectionUri%20%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%2F%3C%2FA%3E%3F%3CSTRONG%3EproxyMethod%3DRPS%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESet-UserPhoto%20-Identity%20%24user%20-PictureData%20(%5BSystem.IO.File%5D%3A%3AReadAllBytes(%24userphoto))%20-Confirm%3A%24false%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20using%20a%20picture%20larger%20than%20500kb%20and%20higher%20resolution%20than%20648x648%20(to%20try%20if%20it%20gets%20cropped%20and%20reduced%20in%20size%20by%20Office%20365)%20and%20it%20accepts%20it.%20All%20is%20fine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20then%20I%20fetch%20the%20photo%3A%3C%2FP%3E%3CP%3E%24user%20%3D%20Get-UserPhoto%20user%40domain.com%3CBR%20%2F%3E%24user.PictureData%20%7CSet-Content%20%22C%3A%5C%24(%24user.Identity).jpg%22%20-Encoding%20byte%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20the%20photo%20has%20a%20resolution%20that's%20240x240%20and%20filesize%208kb%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20is%20it%20like%20that%2C%20am%20I%20doing%20something%20wrong%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%2FDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-57732%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-222347%22%20slang%3D%22en-US%22%3ERe%3A%20Set-UserPhoto%20size%20of%20picture%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-222347%22%20slang%3D%22en-US%22%3E%3CP%3EI%20disagree%20with%20the%20statement%20that%20photos%20are%20a%20mess%2C%20they%20work%20as%20expected.%20The%20issue%20the%20original%20author%20has%20is%20not%20in%20the%20photos%2C%20but%20in%20a%20limitation%20of%20the%20Get-UserPhoto%20powershell%20command.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20you%20may%20note%2C%20there%20is%20no%20switch%20with%20the%20command%20to%20specify%20the%20photo%20size%20to%20retrieve%2C%20so%20the%20command%20is%20simply%20always%20retrieving%20the%20HR240x240%20value.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20examine%20the%20photos%20available%20through%20the%20Web%20UI%20for%20Outlook%2C%20such%20as%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fews%2FExchange.asmx%2Fs%2FGetUserPhoto%3Femail%3Duser%40domain.com%26amp%3Bsize%3DHR648x648%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fews%2FExchange.asmx%2Fs%2FGetUserPhoto%3Femail%3Duser%40domain.com%26amp%3Bsize%3DHR648x648%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20will%20note%20that%20all%20sizes%20of%20HR%20listed%20here%20should%20be%20retrievable%20by%20changing%20the%20HR%20value%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fclient-developer%2Fweb-service-reference%2Fsizerequested%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fclient-developer%2Fweb-service-reference%2Fsizerequested%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20to%20summarize%20as%20a%20Best%20Practices%20Recommendation%3A%3C%2FP%3E%3COL%3E%3CLI%3E%3CSTRONG%3EAvoid%20using%20Active%20Directory%20ThumbnailPhotos%20as%20a%20means%20of%20replicating%20photos%20from%20on%20prem%20to%20Office%20365%20as%20the%20photo%20resolution%20is%20no%20greater%20than%2064x64%20and%20the%20file%20size%20is%20restricted%20to%2010KB.%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EFor%20users%20with%20an%20Exchange%20Online%20or%20Skype%20for%20Business%20Online%20licensing%2C%20profile%20photos%20should%20be%20cropped%20or%20resized%20to%20648x648%20prior%20to%20uploading%20to%20Office%20365%20to%20ensure%20proper%20aspect%20ratios%20are%20maintained%20when%20Exchange%20Online%20automatically%20resizes%20the%20photos.%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EAdministrators%20may%20upload%20prepared%20profile%20photos%20for%20their%20users%20with%20Exchange%20Online%20or%20Skype%20for%20Business%20Online%20using%20the%20Set-UserPhoto%20command.%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EFor%20more%20restrictive%20environments%2C%20disable%20the%20user's%20ability%20to%20modify%20their%20profile%20photo.%20This%20can%20be%20accomplished%20with%20a%20command%3A%26nbsp%3B%3CSTRONG%3EGet-OwaMailboxPolicy%20%7C%20Set-OwaMailboxPolicy%20-SetPhotoEnabled%20%24false%3CBR%20%2F%3EThis%20process%20takes%20an%20hour%20or%20more%20to%20complete.%3C%2FSTRONG%3E%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EThese%20profile%20photos%20will%20be%20copied%20automatically%20into%20SharePoint%20Online%20for%20the%20small%2C%20medium%2C%20and%20large%20photos%20it%20stores.%3CBR%20%2F%3EThis%20process%20is%20not%20immediate%20in%20some%20cases%2C%20may%20require%20up%20to%2072%20hours%20to%20update.%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EFor%20users%20with%20only%20SharePoint%20Online%20licensing%2C%20and%20no%20Exchange%20or%20Skype%2C%20the%20profile%20photo%20will%20only%20be%20stored%20in%20SharePoint%20Online%20and%20the%20previous%20commands%20to%20set%20the%20photo%20are%20not%20available%20to%20the%20Administrator.%3CBR%20%2F%3EMost%20Office%20365%20deployments%20include%20Exchange%20Online%2C%20so%20this%20is%20a%20limited%20scenario.%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-59142%22%20slang%3D%22en-US%22%3ERe%3A%20Set-UserPhoto%20size%20of%20picture%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-59142%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Vasil%20for%20confirming%20my%20experience%20that%20photos%20are%20a%20mess%20in%20O365.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20soon%20receive%20feedback%20from%20the%20customer%20regarding%20the%20resolution%20and%20quality%20of%20the%20photos%20that%20I%20uploaded%20through%20powershell%20and%20try%20to%20explain%20all%20the%20ifs%20and%20buts%20and%20caveats%20of%20photos%20in%20O365.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-57970%22%20slang%3D%22en-US%22%3ERe%3A%20Set-UserPhoto%20size%20of%20picture%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57970%22%20slang%3D%22en-US%22%3E%3CP%3EPhotos%20in%20O365%20are%20still%20a%20mess%2C%20but%20in%20general%20what%20Vishal%20said%20is%20true.%20The%20available%20sizes%20for%20Exchange%20are%20listed%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Foffice%2Fjj191419(v%3Dexchg.150).aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Foffice%2Fjj191419(v%3Dexchg.150).aspx%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20get%20a%20soecific%20size%20via%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fews%2FExchange.asmx%2Fs%2FGetUserPhoto%3Femail%3Duser%40domain.com%26amp%3Bsize%3DHR240x240%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fews%2FExchange.asmx%2Fs%2FGetUserPhoto%3Femail%3Duser%40domain.com%26amp%3Bsize%3DHR240x240%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhich%20is%20not%20guarantee%20that%20you%20will%20have%20the%20same%20sizes%20in%20other%20workloads.%20You%20can%20see%20(most)%20available%20sizes%20from%20SPO's%20MySites%20store%3A%20%3CA%20href%3D%22https%3A%2F%2Ftenant-my.sharepoint.com%2FUser%2520Photos%2FForms%2FThumbnails.aspx%3Fid%3D%252FUser%2520Photos%252FProfile%2520Pictures%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant-my.sharepoint.com%2FUser%2520Photos%2FForms%2FThumbnails.aspx%3Fid%3D%252FUser%2520Photos%252FProfile%2520Pictures%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-57830%22%20slang%3D%22en-US%22%3ERe%3A%20Set-UserPhoto%20size%20of%20picture%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57830%22%20slang%3D%22en-US%22%3E%3CP%3EI%20believe%20thats%20true.%20If%20we%20have%20to%20use%20for%20S4B%20or%20any%20other%20service%20where%20it%20required%20higher%20resolution%2C%20it%20will%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-57825%22%20slang%3D%22en-US%22%3ERe%3A%20Set-UserPhoto%20size%20of%20picture%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57825%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20Vishal%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20article%20doesn't%20mention%20240x240%20as%20a%20resolution%20being%20used%20anywhere%2C%20then%20it%20seems%20strange%20that%20it's%20the%20resolution%20you%20get%20when%20fetching%20from%20Exchange%20online%20and%20the%20filesize%20is%20approximately%207kb.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20if%20you%20don't%20make%20use%20of%20Skype%20then%20I%20see%20no%20real%20improvement%20of%20using%20Set-UserPhoto%20and%20the%20manual%20labour%20of%20using%20powershell%20scripts.%20Then%20we%20can%20just%20go%20with%20the%20ADsync%20of%20the%20thumbnail%20attribute%20resulting%20in%2010%20kb%20images%2C%20which%20is%20what%20you%20get%20anyway%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOr%20am%20I%20missing%20something%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%2FDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-57741%22%20slang%3D%22en-US%22%3ERe%3A%20Set-UserPhoto%20size%20of%20picture%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57741%22%20slang%3D%22en-US%22%3E%3CP%3EHere%20is%20the%20another%20artilce%20which%20has%20explained%20the%20process-%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftahoeninjas.wordpress.com%2F2015%2F04%2F10%2Fuploading-high-resolution-user-profile-pictures-in-office-365%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftahoeninjas.wordpress.com%2F2015%2F04%2F10%2Fuploading-high-resolution-user-profile-pictures-in-office-365%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-57740%22%20slang%3D%22en-US%22%3ERe%3A%20Set-UserPhoto%20size%20of%20picture%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57740%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20we%20upload%20larger%20picture%2C%20E%3CSPAN%3Exchange%20can%20automatically%20resize%20these%20photos%20for%20use%20in%20different%20products%20as%20needed.%20I%20haven't%20found%26nbsp%3Bthe%20official%20recommendation%20for%20the%20particular%20size%2C%20but%20as%20mentioned%20in%20the%20below%20Technet%20article%2C%26nbsp%3Bit%20can%20can%20automatically%20resize%20in%20three%20different%20photo%20sizes%20and%20resolutions%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3E64%20pixels%20by%2064%20pixels%2C%20the%20size%20used%20for%20the%20Active%20Directory%20thumbnailPhoto%20attribute.%20If%20you%20upload%20a%20photo%20to%20Exchange%20Server%2C%20Exchange%20will%20automatically%20create%20a%2064%20pixel%20by%2064%20pixel%20version%20of%20that%20photo%20and%20update%20the%20user's%20thumbnailPhoto%20attribute.%20Note%2C%20however%2C%20that%20the%20reverse%20is%20not%20true%3A%20if%20you%20manually%20update%20the%20thumbnailPhoto%20attribute%20in%20Active%20Directory%20the%20photo%20in%20the%20user's%20Exchange%20mailbox%20will%20not%20automatically%20be%20updated.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E96%20pixels%20by%2096%20pixels%2C%20for%20use%20in%20Microsoft%20Outlook%202013%20Web%20App%2C%20Microsoft%20Outlook%202013%2C%20Skype%20for%20Business%20Web%20App%2C%20and%20Skype%20for%20Business.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E648%20pixels%20by%20648%20pixels%20for%20use%20in%20Skype%20for%20Business%20and%20Skype%20for%20Business%20Web%20App%26nbsp%3BSkype%20for%20Business%20Web%20App.%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EArticle-%20%3CA%20href%3D%22https%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fjj688150.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fjj688150.aspx%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi Community!

 

I've been trying to read up on the subject regarding user thumbnail photos in Office365 but I'd like to hear the "final" version from Microsoft about this.

 

I have a customer that wants to upload images that are bigger in size than what AD on-premise support(100kb) and Azure AD support(10kb)

 

From what I've heard Exchange Online can be the one holding the profile pic of up to 500 kb and 648x648 resolution

 

So I'm trying this out like this:

New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/?proxyMethod=RPS

 

Set-UserPhoto -Identity $user -PictureData ([System.IO.File]::ReadAllBytes($userphoto)) -Confirm:$false

 

I'm using a picture larger than 500kb and higher resolution than 648x648 (to try if it gets cropped and reduced in size by Office 365) and it accepts it. All is fine.

 

But then I fetch the photo:

$user = Get-UserPhoto user@domain.com
$user.PictureData |Set-Content "C:\$($user.Identity).jpg" -Encoding byte

 

And the photo has a resolution that's 240x240 and filesize 8kb

 

Why is it like that, am I doing something wrong?

 

/Daniel

7 Replies
Highlighted

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

 

Highlighted
Highlighted

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

Highlighted

I believe thats true. If we have to use for S4B or any other service where it required higher resolution, it will help.

Highlighted

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%2...

 

 

Highlighted

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.

Highlighted

I disagree with the statement that photos are a mess, they work as expected. The issue the original author has is not in the photos, but in a limitation of the Get-UserPhoto powershell command.

 

As you may note, there is no switch with the command to specify the photo size to retrieve, so the command is simply always retrieving the HR240x240 value.

 

If you examine the photos available through the Web UI for Outlook, such as:

https://outlook.office365.com/ews/Exchange.asmx/s/GetUserPhoto?email=user@domain.com&size=HR648x648

 

You will note that all sizes of HR listed here should be retrievable by changing the HR value:

https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/sizerequested

 

So to summarize as a Best Practices Recommendation:

  1. Avoid using Active Directory ThumbnailPhotos as a means of replicating photos from on prem to Office 365 as the photo resolution is no greater than 64x64 and the file size is restricted to 10KB.
  2. For users with an Exchange Online or Skype for Business Online licensing, profile photos should be cropped or resized to 648x648 prior to uploading to Office 365 to ensure proper aspect ratios are maintained when Exchange Online automatically resizes the photos.
  3. Administrators may upload prepared profile photos for their users with Exchange Online or Skype for Business Online using the Set-UserPhoto command.
  4. For more restrictive environments, disable the user's ability to modify their profile photo. This can be accomplished with a command: Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -SetPhotoEnabled $false
    This process takes an hour or more to complete.
  5. These profile photos will be copied automatically into SharePoint Online for the small, medium, and large photos it stores.
    This process is not immediate in some cases, may require up to 72 hours to update.
  6. For users with only SharePoint Online licensing, and no Exchange or Skype, the profile photo will only be stored in SharePoint Online and the previous commands to set the photo are not available to the Administrator.
    Most Office 365 deployments include Exchange Online, so this is a limited scenario.