Example #1
0
 /**
  * get hashed folder with subfolders in case random_folder = true
  *
  * @param $hash
  * @return string
  */
 public function getHashedPath($hash)
 {
     if ($this->illuminage->getOption('random_folder')) {
         return substr($hash, 0, 2) . '/' . substr($hash, 2, 2) . '/';
     }
     return '';
 }
Example #2
0
 /**
  * Process the original image and returns the SplFileImage
  *
  * @return string
  */
 protected function getProcessedImage()
 {
     if (is_null($this->processedImage)) {
         $image = $this->illuminage->process($this);
         $this->processedImage = new SplFileImage($image);
     }
     return $this->processedImage;
 }