From 893e8553c2fc1fa0f1accd011bac8acf3abd7b8e Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 4 Aug 2023 15:31:39 +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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SrcJuMethod.js b/SrcJuMethod.js index 8d04cbfb..c8c9c34f 100644 --- a/SrcJuMethod.js +++ b/SrcJuMethod.js @@ -165,7 +165,10 @@ function imageCompress(imgurl,fileid) { log(parseInt(size/1080)); //let newpath = "/storage/emulated/0/Android/data/com.example.hikerview/files/Documents/_cache/"+(fileid||"")+"_"+getName(imgurl); let newpath = "/storage/emulated/0/Android/data/com.example.hikerview/files/Documents/_cache/1.jpg"; - compress(f, 8, newpath); + let ff = fetch(imgurl, { + inputStream: true + }); + compress(ff, 8, newpath); //if(r){ // return "file://" + newpath; //}