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