Skip to content

Commit

Permalink
剪裁图片命名添加后缀
Browse files Browse the repository at this point in the history
  • Loading branch information
teach committed Dec 6, 2019
1 parent 48a3da4 commit 3a7cedf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3a7cedf

Please sign in to comment.