public function getThumb($options = [])
    {
        if (!$this->isImage())
            return $this->getPath();

        $options = $this->getDefaultThumbOptions($options);

        $thumbFile = $this->getThumbFilename($options);
        if (!$this->hasFile($thumbFile))
            $this->makeThumb($thumbFile, $options);

        return $this->getPublicPath().$this->getPartitionDirectory().$thumbFile;
    }
public function getThumb($options = [])
    {
        if (!$this->isImage())
            return $this->getPath();

        $options = $this->getDefaultThumbOptions($options);

        $thumbFile = $this->getThumbFilename($options);
        if (!$this->hasFile($thumbFile))
            $this->makeThumb($thumbFile, $options);

        return $this->getPublicPath().$this->getPartitionDirectory().$thumbFile;
    }
public function getThumb ( $ options = [ ] ) { if ( ! $ this -> isImage ( ) ) return $ this -> getPath ( ) ; $ options = $ this -> getDefaultThumbOptions ( $ options ) ; $ thumbFile = $ this -> getThumbFilename ( $ options ) ; if ( ! $ this -> hasFile ( $ thumbFile ) ) $ this -> makeThumb ( $ thumbFile , $ options ) ; return $ this -> getPublicPath ( ) . $ this -> getPartitionDirectory ( ) . $ thumbFile ; }
Generates and returns a thumbnail url.
@param int $width
@param int $height
@param array $options
@return string
Generates and returns a thumbnail url .