Function generateThumbnail

  • generates a thumbnail for a given media, if required

    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;
    }>

Generated using TypeDoc