magica
Version:
ImageMagick for browser and Node.js, easy setup, high level API and Command Line Interface, including WASM binary for an easy setup.
38 lines (37 loc) • 1.77 kB
TypeScript
import { IFile } from '../types';
export declare function getConfigureFolders(): Promise<string[]>;
interface ListConfigure {
/** lower case delegates names like bzlib freetype heic jng jp2 jpeg lcms ltdl lzma openexr png tiff webp xml zlib */
delegates: string[];
/** lower case feature names like Cipher DPC HDRI Modules OpenMP(3.1) */
features: string[];
}
/** returns the output of part of the information returned in `convert -list configure`, parsed. */
export declare function listConfigure(): Promise<ListConfigure>;
interface Format {
name: string;
flags: string;
description: string;
}
export declare function listFormat(): Promise<Format[]>;
/**
* List of image formats that are known to be supported by wasm-imagemagick both for read and write. See `spec/formatSpec.ts`.
*
* has some heuristic information regarding features (not) supported by wasm-imagemagick, for example, image formats
*/
export declare const knownSupportedReadWriteImageFormats: string[];
/**
* List of image formats that are known to be supported by wasm-imagemagick but only for write operation. See `spec/formatSpec.ts`
*/
export declare const knownSupportedWriteOnlyImageFormats: string[];
/**
* list of image formats that are known to be supported by wasm-imagemagick but only for read operation. See `spec/formatSpec.ts`
*/
export declare const knownSupportedReadOnlyImageFormats: string[];
declare type images = 'rose:' | 'logo:' | 'wizard:' | 'granite:' | 'netscape:';
/**
* Gets ImageMagick built-in images like `rose:`, `logo:`, etc in the form of {@link File}s.
* @param builtIn if given it will resolve with with an array contianing only that image
*/
export declare function imageBuiltIn(builtIn?: images): Promise<IFile[]>;
export {};