diff --git a/SrcJuMethod.js b/SrcJuMethod.js index b1bbda10..eac30f49 100644 --- a/SrcJuMethod.js +++ b/SrcJuMethod.js @@ -164,11 +164,12 @@ function imageCompress(imgurl,fileid) { let newpath = "/storage/emulated/0/Android/data/com.example.hikerview/files/Documents/_cache/"+(fileid||"")+"_"+getName(imgurl); log(newpath); //compress(f, 2, newpath); + //log(f); let f = fetch(imgurl, { inputStream: true }); - compress(f, 3, "/storage/emulated/0/Android/data/com.example.hikerview/files/Documents/_cache/1.jpg"); - //return "file://" + newpath; - return "file:///storage/emulated/0/Android/data/com.example.hikerview/files/Documents/_cache/1.jpg"; + let r = compress(f, 3, newpath); + log(r); + return "file://" + newpath; } }