sp image helper.imagehelper - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki

Home > @microsoft/sp-image-helper > ImageHelper

ImageHelper class

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

ImageHelper exposes the ability to convert a SharePoint url to an optimized thumbnail url.

Signature:

export declare class ImageHelper

Methods

Method Modifiers Description
convertToImageUrl(request) static (BETA) Convert a url to a file or page on SharePoint into an optimized image url.
⚠️ **GitHub.com Fallback** ⚠️