Skip to content

Set-UserPhotosInSharePoint.ps1 row 131  #1

@dorjemrav

Description

@dorjemrav

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 :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions