更新 'SrcJuMethod.js'

Ju
src48597962 2 years ago
parent f396ee0445
commit 900a2d0083
  1. 5
      SrcJuMethod.js

@ -164,7 +164,10 @@ 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);
compress(f, 8, "/storage/emulated/0/Android/data/com.example.hikerview/files/Documents/_cache/1.jpg");
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";
}

Loading…
Cancel
Save