/** * Renders the image. This will add the appropriate headers and streams the image * * @param string $aQuality */ public function render($aQuality = null) { if ($aQuality != null) { $this->res->setQuality($aQuality); } $this->applyFilters(); $this->res->render(ImageType::getType($this->res->getOutputPath())); }
/** * Renders the image. This will add the appropriate headers and streams the image * * @param string $aQuality */ public function render($aQuality = null) { if ($aQuality != null) { $this->res->setQuality($aQuality); } $this->applyFilters(); // set the correct header when output to screen header("Content-Type:", 'image/' . $this->res->getOutputPath()->getExtension()); $this->res->outputImage(); }