19 lines
355 B
Plaintext
19 lines
355 B
Plaintext
// @flow
|
|
declare type ResizedImageInfo = {
|
|
path: string,
|
|
uri: string,
|
|
size?: number,
|
|
name?: string
|
|
};
|
|
|
|
declare export function createResizedImage(
|
|
uri: string,
|
|
width: number,
|
|
height: number,
|
|
format: 'PNG' | 'JPEG' | 'WEBP',
|
|
quality: number,
|
|
rotation?: number,
|
|
outputPath?: string
|
|
): Promise<ResizedImageInfo>;
|
|
|