public function image($email, $alt = null, array $attributes = [], $rating = null)
    {
        $dimensions = array_values(
            Arr::only($attributes, ['width', 'height'])
        );

        $size = count($dimensions)
            ? min(512, max($dimensions))
            : $this->getSize();

        return Img::make()
                  ->src($this->src($email, $size, $rating))
                  ->attributeUnless(is_null($alt), 'alt', $alt)
                  ->attributes($attributes);
    }
public function image($email, $alt = null, array $attributes = [], $rating = null)
    {
        $dimensions = array_values(
            Arr::only($attributes, ['width', 'height'])
        );

        $size = count($dimensions)
            ? min(512, max($dimensions))
            : $this->getSize();

        return Img::make()
                  ->src($this->src($email, $size, $rating))
                  ->attributeUnless(is_null($alt), 'alt', $alt)
                  ->attributes($attributes);
    }
public function image ( $ email , $ alt = null , array $ attributes = [ ] , $ rating = null ) { $ dimensions = array_values ( Arr :: only ( $ attributes , [ 'width' , 'height' ] ) ) ; $ size = count ( $ dimensions ) ? min ( 512 , max ( $ dimensions ) ) : $ this -> getSize ( ) ; return Img :: make ( ) -> src ( $ this -> src ( $ email , $ size , $ rating ) ) -> attributeUnless ( is_null ( $ alt ) , 'alt' , $ alt ) -> attributes ( $ attributes ) ; }
Get Gravatar image tag.

@param  string       $email
@param  string|null  $alt
@param  array        $attributes
@param  string|null  $rating

@return \Arcanedev\Html\Elements\Img
Get Gravatar image tag .