Function generateThumbnail

  • generates a thumbnail for a given media, if required

    Parameters

    • file: string
    • mediaType: "image" | "video"
    • options: {
          logger?: Logger;
      }
      • Optional logger?: Logger

    Returns Promise<{
        originalImageDimensions: undefined | {
            height: number;
            width: number;
        };
        thumbnail: undefined | string;
    }>

Generated using TypeDoc