@edifice.io/utilities
Version:
9 lines (8 loc) • 447 B
TypeScript
/**
* Get the thumbnail query string for an image source
* @param src Image source
* @param width Width of the thumbnail (0 if you when to keep the aspect ratio and only set the height)
* @param height Height of the thumbnail (0 if you when to keep the aspect ratio and only set the width)
* @returns Image source with the thumbnail query string
*/
export declare function getThumbnail(src: string, width?: number, height?: number): string;