/** * Get rendition preview * * @param Newscoop\Image\Rendition $rendition * @param int $width * @param int $height * @param Newscoop\Image\ImageInterface $image * @return string */ public function renditionPreview(\Newscoop\Image\Rendition $rendition, $width, $height, \Newscoop\Image\ImageInterface $image) { $this->view->rendition = $rendition; $this->view->preview = $rendition->getPreview($width, $height); $this->view->thumbnail = $this->view->preview->getThumbnail($image, Zend_Registry::get('container')->getService('image')); $this->view->image = $image; return $this->view->render('rendition/preview.phtml'); }
/** * Get thumbnail for given image and rendition * * @param Newscoop\Image\Rendition $rendition * @param Newscoop\Image\ImageInterface $image * * @return Newscoop\Image\Thumbnail */ public function getThumbnail(Rendition $rendition, ImageInterface $image) { return $rendition->getThumbnail($image, $this); }
public function getInfo() { $this->__load(); return parent::getInfo(); }