Cropping options

Permalink Browser Info Environment
Hi - is there any way with the cropping options that I can set the height/width and it will resize the images to match the size of the block?

Type: Discussion
Status: New
bottlefedbaby
View Replies:
sebastienj replied on at Permalink Reply
sebastienj
Hi,

Are u using the watermark functionalities ?
if no, just open controller.php and change line 119 :

$v[$cc]['src'] = ($w && $fv == 'jpg') ? $watermarkUrl."?fID=".$d['fID']."&wID=".$this->watermarkFileID : $img->getRelativePath();

by this one :
$v[$cc]['src'] = ($w && $fv == 'jpg') ? $watermarkUrl."?fID=".$d['fID']."&wID=".$this->watermarkFileID : $i->getThumbnail($img,$this->width, $this->height,true);


if you are using watermark is a bit more complex.

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.