packages start...
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
## 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
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user