33 lines
693 B
Markdown
33 lines
693 B
Markdown
## image
|
|
|
|
```ts
|
|
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
|
|
}
|
|
```
|