diff --git a/src/lib/backpack/jpeg-thumbnail.js b/src/lib/backpack/jpeg-thumbnail.js index bf6a4797c32cde57d71f0c0d6e95d82bec4c1e9a..687e97557220641e6869b2a5152eb54d523fa310 100644 --- a/src/lib/backpack/jpeg-thumbnail.js +++ b/src/lib/backpack/jpeg-thumbnail.js @@ -11,7 +11,7 @@ const jpegThumbnail = dataUrl => new Promise((resolve, reject) => { // drawImage can fail if image height/width is less than 1 // Use blank image; the costume is too small to render anyway ctx.fillStyle = 'white'; // Create white background, since jpeg doesn't have transparency - ctx.fillRect(0, 0, maxDimension, maxDimension); + ctx.fillRect(0, 0, canvas.width, canvas.height); } else { if (image.height > image.width) { canvas.height = maxDimension;