Function generateThumbnail
-
generateThumbnail(file,
mediaType,
options): Promise<{
originalImageDimensions: undefined | {
height: number;
width: number;
};
thumbnail: undefined | string;
}>
-
Parameters
-
file:
string
-
mediaType:
"image" | "video"
-
options:
{
logger?: ILogger;
}
-
Optional
logger?: ILogger
Returns Promise<{
originalImageDimensions: undefined | {
height: number;
width: number;
};
thumbnail: undefined | string;
}>
generates a thumbnail for a given media, if required