You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* - `"default"` - A general-purpose preset (default setting)
20
+
* - `"photo"` - A digital picture, like a portrait or indoor shot
21
+
* - `"picture"` - An outdoor photograph with natural lighting
22
+
* - `"drawing"` - A hand or line drawing with high-contrast details
23
+
* - `"icon"` - A small-sized colorful image
24
+
* - `"text"` - A text image with large areas of uniform color
25
+
*/
26
+
typeWebPPresetOptions=
27
+
|"default"
28
+
|"photo"
29
+
|"picture"
30
+
|"drawing"
31
+
|"icon"
32
+
|"text";
33
+
17
34
/**
18
35
* *WEBP options*. **PRO feature**
19
36
*
@@ -31,6 +48,10 @@ type WebpOptions =
31
48
* when `true`, enables smart subsampling. Smart subsampling increases the resulting file size and compression time but improves quality. Default: `false`
32
49
*/
33
50
smart_subsample?: boolean;
51
+
/**
52
+
* A hint to the encoder about the type of image being compressed. This helps optimize WebP compression based on the specific type of image being processed.
0 commit comments