public function thumbnail($fileName = null, $width = null, $height = null, $crop = null)
    {
        //Check if it's an alias as the only parameter after $filename
        if ($width && !$height && !$crop && $this->isAlias($width)) {
            return $this->getAliasedUri($fileName, $width);
        }

        $thumb = $this->getThumbnail($fileName, $width, $height, $crop);

        return $this->getThumbnailUri($thumb);
    }
public function thumbnail($fileName = null, $width = null, $height = null, $crop = null)
    {
        //Check if it's an alias as the only parameter after $filename
        if ($width && !$height && !$crop && $this->isAlias($width)) {
            return $this->getAliasedUri($fileName, $width);
        }

        $thumb = $this->getThumbnail($fileName, $width, $height, $crop);

        return $this->getThumbnailUri($thumb);
    }
public function thumbnail ( $ fileName = null , $ width = null , $ height = null , $ crop = null ) { //Check if it's an alias as the only parameter after $filename if ( $ width && ! $ height && ! $ crop && $ this -> isAlias ( $ width ) ) { return $ this -> getAliasedUri ( $ fileName , $ width ) ; } $ thumb = $ this -> getThumbnail ( $ fileName , $ width , $ height , $ crop ) ; return $ this -> getThumbnailUri ( $ thumb ) ; }
Helper function to make a path to an image thumbnail.

@param string     $fileName Target filename
@param string|int $width    Target width
@param string|int $height   Target height
@param string     $crop     zooming and cropping: Set to 'f(it)', 'b(orders)', 'r(esize)' or 'c(rop)'
Set width or height parameter to '0' for proportional scaling
Setting them to '' uses default values

@return string Relative URL of the thumbnail
Helper function to make a path to an image thumbnail .