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
|
|
|
|
2017-08-31 07:16:18 +00:00
|
|
|
declare function createResizedImage(
|
2017-08-07 07:06:02 +00:00
|
|
|
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
|
|
|
|
2017-08-31 07:16:18 +00:00
|
|
|
declare export default {
|
|
|
|
createResizedImage: createResizedImage
|
|
|
|
};
|