Crop thumbnail to exact provided thumbnail sizes

Permalink Browser Info Environment
Galleria as default does not crop images for using at thumbnail area, it uses provided Height/Width and return thumbnails with equal height and appropriate with.
If you want Galleria to return an exact Height/Width that you provide at create Galleria you should follow this instruction:
1 - Open file:
\whale_galleria\blocks\whale_galleria\controller.php
2 - At line 117 replace line:
$tmp->thumb = $im->getThumbnail($f, $this->gallery['options']->thumbWidth, $this->gallery['options']->thumbHeight)->src;

with:
$tmp->thumb = $im->getThumbnail($f, $this->gallery['options']->thumbWidth, $this->gallery['options']->thumbHeight, true)->src;

Type: Discussion
Status: New
shahroq
View Replies:

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.