src/Presenters/Presenter.php
public function image($width = null, $height = null, array $options = [])
    {
        $url = $this->getImageUrlOrDefault();

        if (pathinfo($url, PATHINFO_EXTENSION) === 'svg') {
            return $url;
        }

        return url(Croppa::url($url, $width, $height, $options));
    }
public function image($width = null, $height = null, array $options = [])
    {
        $url = $this->getImageUrlOrDefault();

        if (pathinfo($url, PATHINFO_EXTENSION) === 'svg') {
            return $url;
        }

        return url(Croppa::url($url, $width, $height, $options));
    }
public function image ( $ width = null , $ height = null , array $ options = [ ] ) { $ url = $ this -> getImageUrlOrDefault ( ) ; if ( pathinfo ( $ url , PATHINFO_EXTENSION ) === 'svg' ) { return $ url ; } return url ( Croppa :: url ( $ url , $ width , $ height , $ options ) ) ; }
Return src string of a resized or cropped image.

@param int   $width   width of image, null for auto
@param int   $height  height of image, null for auto
@param array $options see Croppa doc for options (https://github.com/BKWLD/croppa)

@return string
Return src string of a resized or cropped image .