Compartilhar via


The image uploaded to MySite is not scaled down/resized.

I came across this peculiar problem of images not getting resized on the Mysite home page. On uploading on Mysite, the images should automatically get resized to fit the placeholder which didn’t happen as shown below:

clip_image001

In my scenario this did not happen as the Portal.js file in the _Layouts folder had been modified and had some lines missing which were deleted by mistake.

The Portal.js file has the necessary functions to resize the image.

As a workaround, I copied the Portal.js file from a different SharePoint box and replaced the problematic Portal.js file. This resolved the issue as can be seen in the screenshot below:

clip_image002

The image got resized after replacing the problematic Portal.js file.