tibi-docs/docs/md/server-javascript-kontext/packages/image.md
2023-06-03 18:07:58 +00:00

693 B

image

interface ImagePackage {
    /**
     * convert image from source file to target file with filters
     *
     * @param sourceFile
     * @param targetFile
     * @param filters
     */
    filter(
        sourceFile: string,
        targetFile: string,
        filters: {
            fit?: boolean
            fill?: boolean
            width?: number
            height?: number
            brightness?: number
            saturation?: number
            contrast?: number
            gamma?: number
            blur?: number
            sharpen?: number
            invert?: boolean
            grayscale?: boolean
            quality?: number
        }[]
    ): void
}