mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add webp support
This commit is contained in:
@@ -75,4 +75,13 @@ public class FileTypeUtilTest {
|
||||
inputStream.reset();
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void webpTest(){
|
||||
// https://gitee.com/dromara/hutool/issues/I5BGTF
|
||||
final File file = FileUtil.file("d:/test/a.webp");
|
||||
final BufferedInputStream inputStream = FileUtil.getInputStream(file);
|
||||
final String type = FileTypeUtil.getType(inputStream);
|
||||
Console.log(type);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user