From 723a3fcd2b714a76d047697de111546fca01f78f Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 4 Aug 2023 22:20:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuMethod.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuMethod.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SrcJuMethod.js b/SrcJuMethod.js index cdb9fd03..59311e8a 100644 --- a/SrcJuMethod.js +++ b/SrcJuMethod.js @@ -142,8 +142,7 @@ function imageCompress(imgurl,fileid) { } else { bitmap = BitmapFactory.decodeFile(path, options); } - options.inJustDecodeBounds = false; - log(options); + //options.inJustDecodeBounds = false; return options; //getPicInfo(f).outWidth //getPicInfo(f).outHeight @@ -157,7 +156,8 @@ function imageCompress(imgurl,fileid) { }); let ff = f; let newpath = "/storage/emulated/0/Android/data/com.example.hikerview/files/Documents/_cache/"+(fileid||"")+"_"+getName(imgurl); - compress(f,3,newpath); log(getPicInfo(ff)); + compress(f,3,newpath); + return "file://"+newpath; }