|
|
@ -164,10 +164,7 @@ function imageCompress(imgurl,fileid) { |
|
|
|
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/"+(fileid||"")+"_"+getName(imgurl); |
|
|
|
log(newpath); |
|
|
|
log(newpath); |
|
|
|
//compress(f, 2, newpath);
|
|
|
|
//compress(f, 2, newpath);
|
|
|
|
//log(f);
|
|
|
|
log(f); |
|
|
|
let f = fetch(imgurl, { |
|
|
|
|
|
|
|
inputStream: true |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
let r = compress(f, 3, newpath); |
|
|
|
let r = compress(f, 3, newpath); |
|
|
|
log(r); |
|
|
|
log(r); |
|
|
|
return "file://" + newpath; |
|
|
|
return "file://" + newpath; |
|
|
|