diff --git a/console.image.js b/console.image.js index a3c29db..1f04a2a 100644 --- a/console.image.js +++ b/console.image.js @@ -22,7 +22,7 @@ function getBox(width, height) { return { string: "+", - style: "font-size: 1px; padding: " + Math.floor(height/2) + "px " + Math.floor(width/2) + "px; line-height: " + height + "px;" + style: "font-size: 1px; padding: " + Math.floor(height/2) + "px " + Math.floor(width/2) + "px;" } } @@ -164,7 +164,7 @@ img.onload = function() { var dim = getBox(this.width * scale, this.height * scale); - console.log("%c" + dim.string, dim.style + "background: url(" + url + "); background-size: " + (this.width * scale) + "px " + (this.height * scale) + "px; color: transparent;"); + console.log("%c" + dim.string, dim.style + "background: url(" + url + ") no-repeat; background-size: " + (this.width * scale) + "px " + (this.height * scale) + "px; color: transparent;"); }; img.src = url;