Open guillaumegarcia13 opened 4 years ago
If you don't use cdn, you could edit the script.
(this.width*r,this.height*r)
in console.image.min.js and change it to (this.width*r,this.height*r/2)
ORvar dim = getBox(this.width * scale, this.height * scale);
in console.image.js and change it to
var dim = getBox(this.width * scale, this.height * scale / 2);
index.html
<!DOCTYPE html>
<html>
<head>
<title>console.image</title>
</head>
<body>
<div class="wrapper">
<h1>console.image playground. Hit Ctrl/CMD + Shift + J and check it out.</h1>
</div>
I have seen console.image takes
scale
as second argument but it has not the "expected" result as it is cropping the image instead of resizing it.PS: I too experienced the duplicate image as described in #19