You can make concrete5 restrict the maximum thumbnail dimensions by taking the following steps:
concrete5 generates system thumbnails for every graphic file. There are two levels we can use by default: level 1 with a maximum dimension of 60 x 60 pixels and level 2 with a maximum dimension of 250 x 250 pixels.
The file object returned by
getAttribute
has a method calledgetThumbnail
which we can use to access the thumbnail. After the modification, the template should look like this:<?php for ($i = 0; $i < count($cArray); $i++ ) { $cobj = $cArray[$i]; $title = $cobj->getCollectionName(); ?> <h3 class="ccm-page-list-title"><a href="<?php echo $nh->getLinkToCollection($cobj)?>"><?php echo $title?></a></h3> <?php $thumbnail = $cobj->getAttribute('thumbnail'); if ($thumbnail) { echo '<div class="ccm-page-list-thumbnail">'; echo $thumbnail->getThumbnail(2); ...