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; }
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()); }