EasyImage::thumbOf PHP Method

thumbOf() public method

Use standard yii-component CHtml::image().
public thumbOf ( string $file, array $params = [], array $htmlOptions = [], mixed $hash = null ) : string
$file string path
$params array
$htmlOptions array
$hash mixed cache version modifier
return string HTML
    public function thumbOf($file, $params = array(), $htmlOptions = array(), $hash = null)
    {
        return CHtml::image($this->thumbSrcOf($file, $params, $hash), isset($htmlOptions['alt']) ? $htmlOptions['alt'] : '', $htmlOptions);
    }