import { ThumbnailSourceType } from '../PhotoWorker'; import { FaceRegion } from '../../../../common/entities/PhotoDTO'; import { PersonEntry } from '../../database/enitites/person/PersonEntry'; import { SVGIconConfig } from '../../../../common/config/public/ClientConfig'; export declare class PhotoProcessing { private static initDone; private static taskQueInstance; private static get taskQue(); private static readonly CONVERTED_EXTENSION; static init(): void; static generatePersonThumbnail(person: PersonEntry): Promise; static generateConvertedPath(mediaPath: string, size: number): string; static generatePersonThumbnailPath(mediaPath: string, faceRegion: FaceRegion | undefined, size: number): string; /** * Tells if the path is valid with the current config * @param convertedPath */ static isValidConvertedPath(convertedPath: string): Promise; static convertedPhotoExist(mediaPath: string, size: number): Promise; static generateThumbnail(mediaPath: string, size: number, sourceType: ThumbnailSourceType, makeSquare: boolean): Promise; static isPhoto(fullPath: string): boolean; static renderSVG(svgIcon: SVGIconConfig, outPath: string, color?: string): Promise; /** * Renders the svg to a size x size png. The file name gets the hash of the svg, so a changed svg is a new file. */ static renderSVGString(svgString: string, size: number, outPath: string): Promise; }