UNPKG

879 BTypeScriptView Raw
1import { LoadedImage } from '../interfaces';
2import { CropperState } from '../component/cropper.state';
3export declare class LoadImageService {
4 private autoRotateSupported;
5 loadImageFile(file: File, cropperSettings: CropperState): Promise<LoadedImage>;
6 private checkImageTypeAndLoadImageFromArrayBuffer;
7 private isValidImageType;
8 loadImageFromURL(url: string, cropperSettings: CropperState): Promise<LoadedImage>;
9 loadBase64Image(imageBase64: string, cropperSettings: CropperState): Promise<LoadedImage>;
10 private base64ToArrayBuffer;
11 private loadImageFromArrayBuffer;
12 private getSvgImageSize;
13 private transformImageFromArrayBuffer;
14 transformLoadedImage(loadedImage: Partial<LoadedImage>, cropperState: CropperState, forceTransform?: boolean): Promise<LoadedImage>;
15 private loadImageFromObjectUrl;
16 private getTransformedSize;
17}