Skip to content

A live bird collage card for your Home Assistant dashboard.

change_thumbnail_size

Canopy2523c5877e6e89d4
diff --git a/scripts/common.php b/scripts/common.php
index fc05fcd6..4d0fc2a4 100644
--- a/scripts/common.php
+++ b/scripts/common.php
@@ -450,8 +450,8 @@ class Wikipedia extends ImageProvider {
} else {
$license_url = $this->get_external_link($image_url);
}
- if ($page["imageinfo"][0]["width"] > 1024) {
- $image_url = preg_replace('#/commons/#', '/commons/thumb/', $image_url) . '/1024px-'. $image_name;
+ if ($page["imageinfo"][0]["width"] > 1280) {
+ $image_url = preg_replace('#/commons/#', '/commons/thumb/', $image_url) . '/1280px-'. $image_name;
}
}