Example #1
0
 public function getSavePath()
 {
     $webRoot = $this->config->getWebRoot();
     $path = $this->config->getSaveTo();
     $filenameInfo = pathinfo($this->filename);
     # Apply processing params to the path
     $path = strtr($path, array('{w}' => $this->width, '{h}' => $this->height, '{f}' => $filenameInfo['filename'], '{e}' => $filenameInfo['extension'], '{m}' => $this->getMode()));
     $this->compiledFilePath = $path;
     return $webRoot . DIRECTORY_SEPARATOR . $path;
 }