@idscan/idvc2
Version:
component for the capturing documents
14 lines (13 loc) • 570 B
TypeScript
import { BrowserInfo } from 'detect-browser';
export type Angle = 0 | 90 | 180 | 270;
export declare function dataURItoBlob(dataURL: string): Blob;
export declare const rotateImageByAngle: (src: string, angle: Angle) => Promise<unknown>;
export declare const rotateImageByExif: (src: string, browser: BrowserInfo) => Promise<string>;
/**
*
* @param src - string
* @param maxSize - integer
* @param browser - object
* @returns {Promise<DataURL>}
*/
export declare const resizeImage: (src: string, maxSize: number | 'none', browser: BrowserInfo) => Promise<string>;