Skip to content

Commit

Permalink
1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
huming2207 committed Mar 13, 2022
1 parent 362d911 commit 9583278
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ Converts any image to 4-bit-per-pixel grayscale, with dithering to emulate 8-bit
- `signal`: signal of `AbortController`

```ts
export function toMonochrome(image: Buffer): Promise<Buffer>
export function toMonochrome(
image: Buffer,
format?: string | undefined | null,
signal?: AbortSignal | undefined | null,
): Promise<Buffer>
```

Converts any image to 1-bit-per-pixel grayscale, with dithering to emulate 8-bit-per-pixel
Expand Down

0 comments on commit 9583278

Please sign in to comment.