Not so much a bug as a suggestion :
The Set-UserPhotosInSharePoint.ps1 row 131
$Bitmap.Save($OutputPath)
creates PNG mime/type images no matter what the file extension is
If this is altered to be
$Bitmap.Save($OutputPath,"jpeg")
then all the output files are of JPEG mime type.
I'm sure someone could add code which looks at the $OutputPath file extension and alters the mime type accordingly.
Many thanks for the GREAT code :-)
Not so much a bug as a suggestion :
The Set-UserPhotosInSharePoint.ps1 row 131
$Bitmap.Save($OutputPath)
creates PNG mime/type images no matter what the file extension is
If this is altered to be
$Bitmap.Save($OutputPath,"jpeg")
then all the output files are of JPEG mime type.
I'm sure someone could add code which looks at the $OutputPath file extension and alters the mime type accordingly.
Many thanks for the GREAT code :-)