Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Feb 15, 2021
1 parent 65b4e9f commit 09515fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ export function encode(
depth?: ValueOf<typeof BitDepth>;
compression?: ValueOf<typeof Compression>;
filter?: ValueOf<typeof FilterType>;
stripAlpha?: boolean
stripAlpha?: boolean;
},
): Uint8Array {
if (options?.stripAlpha) {
image = image.filter((_, i) => (i + 1) % 4);
}

return wasmEncode(
image,
width,
Expand Down

0 comments on commit 09515fb

Please sign in to comment.