method display documentation in bbn\File\Image
Sends the image with Content-Type.
Example
$img = new bbn\File\Image("/home/data/test/image.jpg");
$img->display();
function()
{
if ($this->test()) {
if (!headers_sent()) {
header('Content-Type: image/'.$this->ext2);
}
if (class_exists('\\Imagick')) {
echo $this;
$this->img->clear();
$this->img->destroy();
}
else{
\call_user_func('image'.$this->ext2, $this->img);
imagedestroy($this->img);
}
}
return $this;
}
Sends the image with Content-Type. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions