12345678910111213141516171819202122232425 |
- export declare enum COMPRESS_LEVEL {
- ADJUST_BY_NET = 0,
- LOW_QUALITY = 1,
- MID_QUALITY = 2,
- HIGH_QUALITY = 3,
- NOT_COMPRESSED = 4,
- CUSTOM = 5
- }
- export interface ReduceImageSizeParams {
- filePaths: string[];
- compressLevel: COMPRESS_LEVEL;
- compressNum?: number;
- }
- export interface ReduceImageSizeResult {
- filePaths: string[];
- }
- declare function reduceImageSize(args: ReduceImageSizeParams): Promise<ReduceImageSizeResult>;
- declare namespace reduceImageSize {
- var version: {
- ios: string;
- android: string;
- pc: string;
- };
- }
- export default reduceImageSize;
|