From d5e7fa8d9448eda6e57a4fdcfdcf918ca2ac0f95 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sat, 16 Nov 2013 20:38:48 +0100 Subject: [PATCH] QR thumbnail previews creation should be aware of the device pixel ratio. --- src/Posting/QR.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 92c3d9a51..7f850868b 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -601,7 +601,7 @@ QR = # Resized pictures through canvases look like ass, # so we generate thumbnails `s` times bigger then expected # to avoid crappy resized quality. - s = 90*2 + s = 90 * 2 * window.devicePixelRatio s *= 3 if @file.type is 'image/gif' # let them animate {height, width} = img if height < s or width < s