From e3fef0f740fa788bba68a29f5561ad439475edbb Mon Sep 17 00:00:00 2001 From: Stephen Demjanenko Date: Mon, 27 Apr 2020 06:15:28 -0700 Subject: [PATCH] site: fix scaling in script to get example thumbnails (#4727) --- site/scripts/get-example-thumbnails/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/scripts/get-example-thumbnails/index.js b/site/scripts/get-example-thumbnails/index.js index e5b977c6d4..770fca852f 100644 --- a/site/scripts/get-example-thumbnails/index.js +++ b/site/scripts/get-example-thumbnails/index.js @@ -45,7 +45,7 @@ async function main() { image.autocrop(); // image.scale(0.25); - if (image.bitmap.width > 200 || image.bitmap.width > 200) { + if (image.bitmap.width > 200 || image.bitmap.height > 200) { const scale = Math.min( 200 / image.bitmap.width, 200 / image.bitmap.height