更新 'SrcJuMethod.js'

Ju
src48597962 2 years ago
parent 85fbdf9c8d
commit 723a3fcd2b
  1. 6
      SrcJuMethod.js

@ -142,8 +142,7 @@ function imageCompress(imgurl,fileid) {
} else { } else {
bitmap = BitmapFactory.decodeFile(path, options); bitmap = BitmapFactory.decodeFile(path, options);
} }
options.inJustDecodeBounds = false; //options.inJustDecodeBounds = false;
log(options);
return options; return options;
//getPicInfo(f).outWidth //getPicInfo(f).outWidth
//getPicInfo(f).outHeight //getPicInfo(f).outHeight
@ -157,7 +156,8 @@ function imageCompress(imgurl,fileid) {
}); });
let ff = f; let ff = f;
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);
compress(f,3,newpath);
log(getPicInfo(ff)); log(getPicInfo(ff));
compress(f,3,newpath);
return "file://"+newpath; return "file://"+newpath;
} }

Loading…
Cancel
Save