diff --git a/web/pdf_thumbnail_view.js b/web/pdf_thumbnail_view.js index 71488c114..71f52aee6 100644 --- a/web/pdf_thumbnail_view.js +++ b/web/pdf_thumbnail_view.js @@ -315,6 +315,7 @@ var PDFThumbnailView = (function PDFThumbnailViewClosure() { if (img.width <= 2 * canvas.width) { ctx.drawImage(img, 0, 0, img.width, img.height, 0, 0, canvas.width, canvas.height); + this._convertCanvasToImage(); return; } // drawImage does an awful job of rescaling the image, doing it gradually.