Example #1
0
 /**
  * @return Thumbator
  */
 public function create()
 {
     $t = new Thumbator($this->httpRequest);
     $t->setWwwPath($this->wwwPath);
     $t->setThumbDir($this->thumbDir);
     return $t;
 }
Example #2
0
 /**
  * @param string $src
  * @param int $width
  * @param int $height
  * @param null $mode
  */
 public function image($src, $width, $height, $mode = Image::SHRINK_ONLY)
 {
     $this->thumbator->create($src, $width, $height, $mode);
 }