application/modules/g/views/helpers/Image.php
public function getUrl($image, $template = null) {
        if ($this->_isFilename($image)) {
            return $this->getStaticUrl($image);
        }
        if (!$template) {
            throw new Exception(self::ERROR_SCALING_TEMPLATE_MISSING);
        }
        return $this->getScaledUrl($image, $template);
    }
public function getUrl($image, $template = null) {
        if ($this->_isFilename($image)) {
            return $this->getStaticUrl($image);
        }
        if (!$template) {
            throw new Exception(self::ERROR_SCALING_TEMPLATE_MISSING);
        }
        return $this->getScaledUrl($image, $template);
    }
public function getUrl ( $ image , $ template = null ) { if ( $ this -> _isFilename ( $ image ) ) { return $ this -> getStaticUrl ( $ image ) ; } if ( ! $ template ) { throw new Exception ( self :: ERROR_SCALING_TEMPLATE_MISSING ) ; } return $ this -> getScaledUrl ( $ image , $ template ) ; }
Return URL of scaled image

@param   mixed   $image      Database id for uploads, or a filename
in case of a static image asset.
@param   string  $template   The id of the scaling template as defined in application.ini.
For instance: 'cms_preview'
@return  string
Return URL of scaled image