예제 #1
0
 public function getParameters()
 {
     if ($this->params) {
         return $this->params;
     }
     $params = new Parameters();
     $params->setConfig($this->config);
     $params->fromString($this->url->getUrlImageName());
     return $this->params = $params;
 }
예제 #2
0
 public function testSkipCropParameters()
 {
     $params = new Parameters();
     $params->fromString('filename,y_100,x_10.jpg');
     $this->assertEquals('filename.jpg', $params->toString());
     $params = new Parameters();
     $params->fromString('filename,c_fill,y_100,x_10.jpg');
     $this->assertEquals('filename.jpg', $params->toString());
     $params = new Parameters();
     $params->fromString('filename,c_100,y_100,x_10.jpg');
     $this->assertEquals('filename,c_100,x_10,y_100.jpg', $params->toString());
 }