diff --git a/templates/PhotosIndex.php b/templates/PhotosIndex.php index c21879cb..2ec9795d 100644 --- a/templates/PhotosIndex.php +++ b/templates/PhotosIndex.php @@ -97,6 +97,8 @@ class PhotosIndex extends SubTemplate // Can we offer double-density thumbs? if ($image->width() >= $width * 2 && $image->height() >= $height * 2) echo ' srcset="', $image->getThumbnailUrl($width * 2, $height * 2, $crop, $fit), ' 2x"'; + else + echo ' srcset="', $image->getThumbnailUrl($image->width(), $image->height(), true), ' 2x"'; echo ' alt="" title="', $image->getTitle(), '">';