method toString documentation in bbn\File\Image

Return the image as string.

Example

$img = new bbn\File\Image("/home/data/test/image.jpg"); bbn\X::hdump($img->toString()); // (string) function() { if ($this->test()) { if (self::isImagick()) { $m = $this->img; } else { ob_start(); \call_user_func('image'.$this->ext2,$this->img); $m = ob_get_contents(); ob_end_clean(); } return 'data:image/'.$this->ext.';base64,'.base64_encode($m); } }

Return the image as string. 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.