2017-08-07 07:06:02 +00:00
|
|
|
// @flow
|
2017-08-17 19:48:58 +00:00
|
|
|
declare type ResizedImageInfo = {
|
|
|
|
path: string,
|
|
|
|
uri: string,
|
|
|
|
size?: number,
|
|
|
|
name?: string
|
|
|
|
};
|
2017-08-07 07:06:02 +00:00
|
|
|
|
|
|
|
declare export function createResizedImage(
|
|
|
|
uri: string,
|
|
|
|
width: number,
|
|
|
|
height: number,
|
|
|
|
format: 'PNG' | 'JPEG' | 'WEBP',
|
|
|
|
quality: number,
|
|
|
|
rotation?: number,
|
|
|
|
outputPath?: string
|
2017-08-17 19:48:58 +00:00
|
|
|
): Promise<ResizedImageInfo>;
|
2017-08-07 07:06:02 +00:00
|
|
|
|