/** * Output the current image resource as a string. * * @param string $format The image format (overwrites the currently defined format). * * @return string The image data as a string. */ public function output($format = null) { return $this->resource->output($format); }