修正模板函数imageSize错误

This commit is contained in:
liweiyi 2025-04-23 14:36:49 +08:00
parent 1496de43ef
commit e55f263d8f

View File

@ -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();