Exemple #1
0
 /**
  * Returns prepared and configured image manager service
  * 
  * @param \Krystal\Stdlib\VirtualEntity $config
  * @return \Krystal\Image\Tool\ImageManager
  */
 private function getImageManager(VirtualEntity $config)
 {
     $plugins = array('thumb' => array('quality' => $config->getCoverQuality(), 'dimensions' => array(array(200, 200), array($config->getCoverWidth(), $config->getCoverHeight()), array($config->getThumbWidth(), $config->getThumbHeight()))));
     return new ImageManager('/data/uploads/module/news/posts/', $this->appConfig->getRootDir(), $this->appConfig->getRootUrl(), $plugins);
 }