Beispiel #1
0
 /**
  * Returns prepared image manager
  * 
  * @param \Krystal\Stdlib\VirtualEntity $config
  * @return \Krystal\Image\Too\ImageManager
  */
 private function getImageManagerService(VirtualEntity $config)
 {
     $plugins = array('thumb' => array('quality' => $config->getQuality(), 'dimensions' => array(array(400, 200), array($config->getWidth(), $config->getHeight()))), 'original' => array('quality' => $config->getQuality(), 'prefix' => 'original', 'max_width' => $config->getMaxWidth(), 'max_height' => $config->getMaxHeight()));
     return new ImageManager('/data/uploads/module/photogallery/photos', $this->appConfig->getRootDir(), $this->appConfig->getRootUrl(), $plugins);
 }