forked from Public/pics
PhotosIndex: enable rendering of more double-density thumbnails
This commit is contained in:
parent
4d05cebc40
commit
2ef1289628
@ -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(), '">';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user