示例#1
0
文件: Helpers.php 项目: bkwld/croppa
 /**
  * Pass through URL requests to URL->generate().
  *
  * @param string $url URL of an image that should be cropped
  * @param integer $width Target width
  * @param integer $height Target height
  * @param array $options Additional Croppa options, passed as key/value pairs.  Like array('resize')
  * @return string The new path to your thumbnail
  * @see Bkwld\Croppa\URL::generate()
  */
 public function url($url, $width = null, $height = null, $options = null)
 {
     return $this->url->generate($url, $width, $height, $options);
 }