Skip to content

Commit 41dd3fa

Browse files
committed
Add jpeg/avif as supported conversion formats
1 parent 3378e6d commit 41dd3fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tinify/Source.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import ResultMeta from "./ResultMeta"
77

88
export type SupportedImageTypes = "image/webp"
99
| "image/png"
10-
| "image/jpg";
10+
| "image/jpg"
11+
| "image/jpeg"
12+
| "image/avif";
1113

1214
export type WildcardOrSupportedImageTypes = SupportedImageTypes
1315
| "*/*"; // The wildcard "*/*" returns the smallest of Tinify's supported image types, currently JPEG, PNG and WebP.

0 commit comments

Comments
 (0)