Commit 8a9aaf00 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

minor

parent 3216e7e7
......@@ -591,6 +591,9 @@ function append_hidden_div(index){
el = $("<div>",{
id: "div_"+index
}).css({
/*position:"absolute",
top: "1000px",
left: index*200+"px",*/
display: "none"
});
......
......@@ -98,16 +98,19 @@
TX = Date.now();
T0 = Date.now();
http.responseType = "blob";
http.onload = function(e) {
console.log("#"+elem.attr("id")+", file load time: "+(Date.now()-TX)/1000+" s");
TX = Date.now();
if (this.status === 200) {
var heavyImage = new Image();
heavyImage.onload = function(){
EXIF.getData(this, function() {
//update canvas size
canvas.attr("width",this.width);
......@@ -118,10 +121,12 @@
canvas.drawImage({
x:0, y:0,
source: this,
//source: heavyImage,
load: redraw,
fromCenter: false
});
});
};
heavyImage.src = URL.createObjectURL(http.response);
}
......@@ -133,6 +138,9 @@
function redraw(){
//for debugging
//IMAGE_FORMAT="JPEG";
$(this).draw({
fn: function(ctx){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment