13
13
* All Rights Reserved.
14
14
*
15
15
*
16
- * util fot create and execute cwebp command to compresses an image using the WebP format.
16
+ * util for create and execute cwebp command to compresses an image using the WebP format.
17
17
* Input format can be either PNG, JPEG, TIFF, WebP or raw Y'CbCr samples.
18
18
* Note: Animated PNG and WebP files are not supported.
19
19
*/
20
20
public class WebpConverter {
21
21
22
22
23
23
/**
24
- * convert PNG, JPEG, TIFF, WebP image to WebP Byte
24
+ * converting PNG, JPEG, TIFF, WebP image to WebP Byte
25
25
* @param imageByte input image byte
26
26
* @return WebP image Byte
27
27
*/
@@ -30,7 +30,7 @@ public static byte[] imageByteToWebpByte(byte[] imageByte){
30
30
}
31
31
32
32
/**
33
- * convert PNG, JPEG, TIFF, WebP image to WebP Byte
33
+ * converting PNG, JPEG, TIFF, WebP image to WebP Byte
34
34
* @param imageByte input image byte
35
35
* @param quality compression factor for RGB channels
36
36
* @return WebP image Byte
@@ -59,7 +59,7 @@ public static byte[] imageByteToWebpByte(byte[] imageByte, int quality){
59
59
}
60
60
61
61
/**
62
- * convert PNG, JPEG, TIFF, WebP image to WebP Byte
62
+ * converting PNG, JPEG, TIFF, WebP image to WebP Byte
63
63
* @param imageFilePath input image file path
64
64
* @param quality compression factor for RGB channels
65
65
* @return WebP image Byte
@@ -79,7 +79,7 @@ public static byte[] imageFileToWebpByte(String imageFilePath, int quality) {
79
79
}
80
80
81
81
/**
82
- * convert PNG, JPEG, TIFF, WebP image to WebP Byte
82
+ * converting PNG, JPEG, TIFF, WebP image to WebP Byte
83
83
* @param imageFile input image file
84
84
* @param quality compression factor for RGB channels
85
85
* @return WebP image Byte
@@ -91,7 +91,7 @@ public static byte[] imageFileToWebpByte(File imageFile, int quality) {
91
91
92
92
93
93
/**
94
- * convert PNG, JPEG, TIFF, WebP image to WebP File
94
+ * converting PNG, JPEG, TIFF, WebP image to WebP File
95
95
* @param imageByte input image byte
96
96
* @param webpPathFile output webp image path file
97
97
* @return WebP image File
@@ -101,7 +101,7 @@ public static File imageByteToWebpFile(byte[] imageByte, String webpPathFile){
101
101
}
102
102
103
103
/**
104
- * convert PNG, JPEG, TIFF, WebP image to WebP File
104
+ * converting PNG, JPEG, TIFF, WebP image to WebP File
105
105
* @param imageByte input image byte
106
106
* @param webpPathFile output webp image path file
107
107
* @param quality compression factor for RGB channels
@@ -130,7 +130,7 @@ public static File imageByteToWebpFile(byte[] imageByte, String webpPathFile, in
130
130
}
131
131
132
132
/**
133
- * convert PNG, JPEG, TIFF, WebP image to WebP File
133
+ * converting PNG, JPEG, TIFF, WebP image to WebP File
134
134
* @param imageFilePath input image file path
135
135
* @param webpPathFile output webp image path file
136
136
* @param quality compression factor for RGB channels
@@ -146,7 +146,7 @@ public static File imageFileToWebpFile(String imageFilePath, String webpPathFile
146
146
}
147
147
148
148
/**
149
- * convert PNG, JPEG, TIFF, WebP image to WebP File
149
+ * converting PNG, JPEG, TIFF, WebP image to WebP File
150
150
* @param imageFile input image file
151
151
* @param webpPathFile output webp image path file
152
152
* @param quality compression factor for RGB channels
@@ -159,7 +159,7 @@ public static File imageFileToWebpFile(File imageFile, String webpPathFile, int
159
159
160
160
161
161
/**
162
- * convert PNG, JPEG, TIFF, WebP image to WebP Byte
162
+ * converting PNG, JPEG, TIFF, WebP image to WebP Byte
163
163
* @param imageFilePath input image file path
164
164
* @param quality compression factor for RGB channels
165
165
* @param tempDir temp directory for converting
@@ -179,7 +179,7 @@ private static byte[] getWebpBytes(String imageFilePath, int quality, Path tempD
179
179
}
180
180
181
181
/**
182
- * convert PNG, JPEG, TIFF, WebP image to WebP File
182
+ * converting PNG, JPEG, TIFF, WebP image to WebP File
183
183
* @param imageFilePath input image file path
184
184
* @param quality compression factor for RGB channels
185
185
* @param tempDir temp directory for converting
0 commit comments