image-loader.d.ts 793 B

123456789101112131415161718192021
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { NzImageSrcLoader } from './typings';
  6. export declare const defaultImageSrcLoader: NzImageSrcLoader;
  7. /**
  8. * AliObjectsLoader return format
  9. * {domain}/{src}?x-oss-process=image/resize,w_{width}
  10. */
  11. export declare function createAliObjectsLoader(domain: string): NzImageSrcLoader;
  12. /**
  13. * ImgixLoader return format
  14. * {domain}/{src}?format=auto&fit=max&w={width}
  15. */
  16. export declare function createImgixLoader(domain: string): NzImageSrcLoader;
  17. /**
  18. * CloudinaryLoader return format
  19. * {domain}/c_limit,q_auto,w_{width}/{src}
  20. */
  21. export declare function createCloudinaryLoader(domain: string): NzImageSrcLoader;