Fetch the Site Page original image instead of thumbnail

Sajith Gopalakrishnan Hema 1,056 Reputation points
2021-02-20T12:45:58.63+00:00

Using SPFx, trying to get the site page image. However I am able to get the banner image URL (thumbnail) only. Unable to get the original image.

70199-small-image.png

The original image path is

70200-original-image.png

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. ZhengyuGuo 10,586 Reputation points Moderator
    2021-02-22T08:10:49.493+00:00

    Hi @Sajith Gopalakrishnan Hema ,

    To get the original image size, set resolution parameter=6:

    70572-snipaste-2021-02-22-16-00-54.png

    https://{tenant}.sharepoint.com/_layouts/15/getpreview.ashx?path={pathToTheDocument}&resolution=6  
    

    Here is a blog with detaield information for your reference:

    SharePoint Online. Document Thumbnail

    Thanks
    Best Regards


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.