Skip to content

Commit

Permalink
site: fix scaling in script to get example thumbnails (sveltejs#4727)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdemjanenko committed Apr 27, 2020
1 parent aabb23c commit e3fef0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/scripts/get-example-thumbnails/index.js
Expand Up @@ -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
Expand Down

0 comments on commit e3fef0f

Please sign in to comment.