|
|
@@ -712,7 +712,17 @@ function loadimg(){ |
|
|
|
reset_var(); |
|
|
|
var picturePath = labeltastresult[fileindex].pic_image_field; |
|
|
|
img.src = ip + "/getgiteaimage?filename=" + picturePath; |
|
|
|
var html = picturePath.substring(picturePath.lastIndexOf("/") + 1) + " "+ "(" + (tablePageData.current * pageSize + fileindex + 1) + "/" + tablePageData.total + ")" |
|
|
|
|
|
|
|
var picIndex = picturePath.indexOf("/",70); |
|
|
|
|
|
|
|
if(picIndex != -1){ |
|
|
|
float_text_name = picturePath.substring(picIndex + 1); |
|
|
|
float_text_name = float_text_name.substring(float_text_name.indexOf('/')+1); |
|
|
|
}else{ |
|
|
|
float_text_name = picturePath.substring(picturePath.lastIndexOf("/") + 1) |
|
|
|
} |
|
|
|
|
|
|
|
var html = float_text_name + " "+ "(" + (tablePageData.current * pageSize + fileindex + 1) + "/" + tablePageData.total + ")" |
|
|
|
document.getElementById("float_text").innerHTML = html; |
|
|
|
} |
|
|
|
function save(){ |
|
|
@@ -2843,8 +2853,8 @@ function isJSON(str) { |
|
|
|
img.onload = function(){ |
|
|
|
loadFinished = false; |
|
|
|
// 初始设置画布大小,最大值宽和高 |
|
|
|
canvas.width = maxWidth;//document.getElementById("tool0").offsetWidth; |
|
|
|
canvas.height = maxHeight;//document.getElementById("tool0").offsetWidth/1280*720; |
|
|
|
canvas.width = img.width;// maxWidth document.getElementById("tool0").offsetWidth; |
|
|
|
canvas.height =img.height;//maxHeight document.getElementById("tool0").offsetWidth/1280*720; |
|
|
|
//调整画布大小 |
|
|
|
if ((img.width/img.height)<(canvas.width/canvas.height)){ |
|
|
|
canvas.width=canvas.height * img.width / img.height; |
|
|
|