reduceImageSize.d.ts 619 B

12345678910111213141516171819202122232425
  1. export declare enum COMPRESS_LEVEL {
  2. ADJUST_BY_NET = 0,
  3. LOW_QUALITY = 1,
  4. MID_QUALITY = 2,
  5. HIGH_QUALITY = 3,
  6. NOT_COMPRESSED = 4,
  7. CUSTOM = 5
  8. }
  9. export interface ReduceImageSizeParams {
  10. filePaths: string[];
  11. compressLevel: COMPRESS_LEVEL;
  12. compressNum?: number;
  13. }
  14. export interface ReduceImageSizeResult {
  15. filePaths: string[];
  16. }
  17. declare function reduceImageSize(args: ReduceImageSizeParams): Promise<ReduceImageSizeResult>;
  18. declare namespace reduceImageSize {
  19. var version: {
  20. ios: string;
  21. android: string;
  22. pc: string;
  23. };
  24. }
  25. export default reduceImageSize;