diff --git a/imageselector/src/main/java/com/donkingliang/imageselector/utils/ImageUtil.java b/imageselector/src/main/java/com/donkingliang/imageselector/utils/ImageUtil.java index 96090da..f588988 100644 --- a/imageselector/src/main/java/com/donkingliang/imageselector/utils/ImageUtil.java +++ b/imageselector/src/main/java/com/donkingliang/imageselector/utils/ImageUtil.java @@ -57,7 +57,7 @@ public static String saveImage(Bitmap bitmap, String path, String name) { file.mkdirs();// 创建文件夹 } - String fileName = path + File.separator + name; + String fileName = path + File.separator + name + ".jpg"; try { b = new FileOutputStream(fileName);