21 lines
1.0 KiB
TypeScript
21 lines
1.0 KiB
TypeScript
import { LoadedImage } from '../interfaces';
|
|
import { CropperSettings } from '../interfaces/cropper.settings';
|
|
import * as i0 from "@angular/core";
|
|
export declare class LoadImageService {
|
|
private autoRotateSupported;
|
|
loadImageFile(file: File, cropperSettings: CropperSettings): Promise<LoadedImage>;
|
|
private checkImageTypeAndLoadImageFromArrayBuffer;
|
|
private isValidImageType;
|
|
loadImageFromURL(url: string, cropperSettings: CropperSettings): Promise<LoadedImage>;
|
|
loadBase64Image(imageBase64: string, cropperSettings: CropperSettings): Promise<LoadedImage>;
|
|
private base64ToArrayBuffer;
|
|
private loadImageFromArrayBuffer;
|
|
private getSvgImageSize;
|
|
private transformImageFromArrayBuffer;
|
|
transformLoadedImage(loadedImage: Partial<LoadedImage>, cropperSettings: CropperSettings, forceTransform?: boolean): Promise<LoadedImage>;
|
|
private loadImageFromObjectUrl;
|
|
private getTransformedSize;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoadImageService, never>;
|
|
static ɵprov: i0.ɵɵInjectableDeclaration<LoadImageService>;
|
|
}
|