mirror of
https://gitee.com/liweiyi/ChestnutCMS.git
synced 2025-12-06 16:38:24 +08:00
修正模板函数imageSize错误
This commit is contained in:
parent
1496de43ef
commit
e55f263d8f
@ -59,7 +59,7 @@ public class ImageHelper {
|
||||
}
|
||||
|
||||
public static ImageHelper of(File imageFile) throws IOException {
|
||||
if (Objects.isNull(imageFile) || imageFile.exists()) {
|
||||
if (Objects.isNull(imageFile) || !imageFile.exists()) {
|
||||
throw new ImageException("Input file is null or not exists.");
|
||||
}
|
||||
ImageHelper imageHelper = new ImageHelper();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user